We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 2bab096 + 1a6d468 commit 6b05e61Copy full SHA for 6b05e61
t/check-non-portable-shell.pl
@@ -17,7 +17,7 @@ sub err {
17
while (<>) {
18
chomp;
19
/\bsed\s+-i/ and err 'sed -i is not portable';
20
- /\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)';
21
/^\s*declare\s+/ and err 'arrays/declare not portable';
22
/^\s*[^#]\s*which\s/ and err 'which is not portable (please use type)';
23
/\btest\s+[^=]*==/ and err '"test a == b" is not portable (please use =)';
0 commit comments