]> git.ipfire.org Git - thirdparty/git.git/blobdiff - t/check-non-portable-shell.pl
Merge branch 'tb/test-lint-sed-options'
[thirdparty/git.git] / t / check-non-portable-shell.pl
index 8037eef7777b4f65af44b3c8cc3e4b46d48259ae..166d64d4a2f05e76f3966080f188b864bf6bf4bb 100755 (executable)
@@ -36,7 +36,7 @@ while (<>) {
        }
 
        /\bcp\s+-a/ and err 'cp -a is not portable';
-       /\bsed\s+-i/ and err 'sed -i is not portable';
+       /\bsed\s+-[^efn]\s+/ and err 'sed option not portable (use only -n, -e, -f)';
        /\becho\s+-[neE]/ and err 'echo with option is not portable (use printf)';
        /^\s*declare\s+/ and err 'arrays/declare not portable';
        /^\s*[^#]\s*which\s/ and err 'which is not portable (use type)';