Andrew's git
/
gitweb.git
/ diff
summary
|
log
|
commit
| diff |
tree
commit
grep
author
committer
pickaxe
?
re
Merge branch 'cb/test-lint-cp-a'
author
Junio C Hamano
<gitster@pobox.com>
Mon, 14 Jan 2019 23:29:30 +0000
(15:29 -0800)
committer
Junio C Hamano
<gitster@pobox.com>
Mon, 14 Jan 2019 23:29:30 +0000
(15:29 -0800)
BSD port update.
* cb/test-lint-cp-a:
tests: add lint for non portable cp -a
t/check-non-portable-shell.pl
patch
|
blob
|
history
raw
(from parent 1:
37a99f8
)
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';