summaryrefslogtreecommitdiff
path: root/t
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2019-02-07 06:05:24 (GMT)
committerJunio C Hamano <gitster@pobox.com>2019-02-07 06:05:24 (GMT)
commitd8d62e61353c7e34006cc5714f07f507256612df (patch)
tree30e38966f1540e10574e0242431dbfce4c385ff7 /t
parentecbe1beb8e41664ac00581234a449c4487600e1d (diff)
parente62e225ffb589e59c4f64d90b0a393aa6a0a5ace (diff)
downloadgit-d8d62e61353c7e34006cc5714f07f507256612df.zip
git-d8d62e61353c7e34006cc5714f07f507256612df.tar.gz
git-d8d62e61353c7e34006cc5714f07f507256612df.tar.bz2
Merge branch 'tb/test-lint-sed-options'
The test lint learned to catch non-portable "sed" options. * tb/test-lint-sed-options: test-lint: only use only sed [-n] [-e command] [-f command_file]
Diffstat (limited to 't')
-rwxr-xr-xt/check-non-portable-shell.pl2
1 files changed, 1 insertions, 1 deletions
diff --git a/t/check-non-portable-shell.pl b/t/check-non-portable-shell.pl
index 8037eef..166d64d 100755
--- a/t/check-non-portable-shell.pl
+++ b/t/check-non-portable-shell.pl
@@ -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)';