summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2019-01-14 23:29:30 (GMT)
committerJunio C Hamano <gitster@pobox.com>2019-01-14 23:29:30 (GMT)
commitedb3273cd2c956cb6671d86e3baf6cf23c21411d (patch)
treeb666c3a238c1f21a81d6063e8ae01cc727e91ff6
parent37a99f8105ee9a1800a3ef2b00939bfdc38c9320 (diff)
parent82cbc8cde25859027aa013568a7040b5a63707d2 (diff)
downloadgit-edb3273cd2c956cb6671d86e3baf6cf23c21411d.zip
git-edb3273cd2c956cb6671d86e3baf6cf23c21411d.tar.gz
git-edb3273cd2c956cb6671d86e3baf6cf23c21411d.tar.bz2
Merge branch 'cb/test-lint-cp-a'
BSD port update. * cb/test-lint-cp-a: tests: add lint for non portable cp -a
-rwxr-xr-xt/check-non-portable-shell.pl1
1 files changed, 1 insertions, 0 deletions
diff --git a/t/check-non-portable-shell.pl b/t/check-non-portable-shell.pl
index b45bdac..8037eef 100755
--- a/t/check-non-portable-shell.pl
+++ b/t/check-non-portable-shell.pl
@@ -35,6 +35,7 @@ while (<>) {
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';