summaryrefslogtreecommitdiff
path: root/t
diff options
context:
space:
mode:
authorLibravatar Junio C Hamano <gitster@pobox.com>2017-10-18 14:18:59 +0900
committerLibravatar Junio C Hamano <gitster@pobox.com>2017-10-18 14:19:00 +0900
commit181f145de337418e22712d03bd394209cb68d12f (patch)
treeb8752be494cacdb8e03b8ee1674b47153f1d2f88 /t
parentMerge branch 'aw/gc-lockfile-fscanf-fix' into maint (diff)
parenttest-lint: echo -e (or -E) is not portable (diff)
downloadtgif-181f145de337418e22712d03bd394209cb68d12f.tar.xz
Merge branch 'tb/test-lint-echo-e' into maint
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
Diffstat (limited to 't')
-rwxr-xr-xt/check-non-portable-shell.pl2
1 files changed, 1 insertions, 1 deletions
diff --git a/t/check-non-portable-shell.pl b/t/check-non-portable-shell.pl
index b170cbc045..03dc9d2852 100755
--- a/t/check-non-portable-shell.pl
+++ b/t/check-non-portable-shell.pl
@@ -17,7 +17,7 @@ sub err {
while (<>) {
chomp;
/\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*[^#]\s*which\s/ and err 'which is not portable (please use type)';
/\btest\s+[^=]*==/ and err '"test a == b" is not portable (please use =)';