Andrew's git
/
gitweb.git
/ blobdiff
summary
|
log
|
commit
|
diff
|
tree
commit
grep
author
committer
pickaxe
?
re
t7510: invoke git as part of &&-chain
[gitweb.git]
/
t
/
check-non-portable-shell.pl
diff --git
a/t/check-non-portable-shell.pl
b/t/check-non-portable-shell.pl
index b45bdac688c40104dd42ef68a07690420d96c142..8037eef7777b4f65af44b3c8cc3e4b46d48259ae 100755
(executable)
--- a/
t/check-non-portable-shell.pl
+++ b/
t/check-non-portable-shell.pl
@@
-35,6
+35,7
@@
sub err {
chomp;
}
+ /\bcp\s+-a/ and err 'cp -a is not portable';
/\bsed\s+-i/ and err 'sed -i is not portable';
/\becho\s+-[neE]/ and err 'echo with option is not portable (use printf)';
/^\s*declare\s+/ and err 'arrays/declare not portable';