Merge branch 'tb/test-lint-echo-e'

The test linter has been taught that we do not like "echo -e".

* tb/test-lint-echo-e:
  test-lint: echo -e (or -E) is not portable
This commit is contained in:
Junio C Hamano 2017-09-25 15:24:09 +09:00
commit 6b05e611bc

View File

@ -17,7 +17,7 @@ sub err {
while (<>) { while (<>) {
chomp; chomp;
/\bsed\s+-i/ and err 'sed -i is not portable'; /\bsed\s+-i/ and err 'sed -i is not portable';
/\becho\s+-n/ and err 'echo -n is not portable (please use printf)'; /\becho\s+-[neE]/ and err 'echo with option is not portable (please use printf)';
/^\s*declare\s+/ and err 'arrays/declare not portable'; /^\s*declare\s+/ and err 'arrays/declare not portable';
/^\s*[^#]\s*which\s/ and err 'which is not portable (please use type)'; /^\s*[^#]\s*which\s/ and err 'which is not portable (please use type)';
/\btest\s+[^=]*==/ and err '"test a == b" is not portable (please use =)'; /\btest\s+[^=]*==/ and err '"test a == b" is not portable (please use =)';