Skip to content

Commit 6b05e61

Browse files
committed
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
2 parents 2bab096 + 1a6d468 commit 6b05e61

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

t/check-non-portable-shell.pl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ sub err {
1717
while (<>) {
1818
chomp;
1919
/\bsed\s+-i/ and err 'sed -i is not portable';
20-
/\becho\s+-n/ and err 'echo -n is not portable (please use printf)';
20+
/\becho\s+-[neE]/ and err 'echo with option is not portable (please use printf)';
2121
/^\s*declare\s+/ and err 'arrays/declare not portable';
2222
/^\s*[^#]\s*which\s/ and err 'which is not portable (please use type)';
2323
/\btest\s+[^=]*==/ and err '"test a == b" is not portable (please use =)';

0 commit comments

Comments
 (0)