Merge branch 'tb/test-lint-sed-options'
[gitweb.git] / t / check-non-portable-shell.pl
index f0edcf8eb0026dc7eab6dafe647bcb60cfbe4ec0..166d64d4a2f05e76f3966080f188b864bf6bf4bb 100755 (executable)
@@ -35,6 +35,7 @@ sub err {
                chomp;
        }
 
+       /\bcp\s+-a/ and err 'cp -a 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';