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 0956eaa + 7dbe8c8 commit e82bbcbCopy full SHA for e82bbcb
t/check-non-portable-shell.pl
@@ -21,6 +21,7 @@ sub err {
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 =)';
24
+ /\bwc -l.*"\s*=/ and err '`"$(wc -l)"` is not portable (please use test_line_count)';
25
/\bexport\s+[A-Za-z0-9_]*=/ and err '"export FOO=bar" is not portable (please use FOO=bar && export FOO)';
26
# this resets our $. for each file
27
close ARGV if eof;
0 commit comments