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 de73968 + 2b52163 commit 1f1f375Copy full SHA for 1f1f375
t/check-non-portable-shell.pl
@@ -45,6 +45,7 @@ sub err {
45
/\bhead\s+-c\b/ and err 'head -c is not portable (use test_copy_bytes BYTES <file >out)';
46
/(?:\$\(seq|^\s*seq\b)/ and err 'seq is not portable (use test_seq)';
47
/\bgrep\b.*--file\b/ and err 'grep --file FILE is not portable (use grep -f FILE)';
48
+ /\b[ef]grep\b/ and err 'egrep/fgrep obsolescent (use grep -E/-F)';
49
/\bexport\s+[A-Za-z0-9_]*=/ and err '"export FOO=bar" is not portable (use FOO=bar && export FOO)';
50
/^\s*([A-Z0-9_]+=(\w*|(["']).*?\3)\s+)+(\w+)/ and exists($func{$4}) and
51
err '"FOO=bar shell_func" assignment extends beyond "shell_func"';
0 commit comments