summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVille Skyttä <ville.skytta@iki.fi>2010-01-16 15:15:06 +0200
committerVille Skyttä <ville.skytta@iki.fi>2010-01-16 15:17:35 +0200
commit8d6570670ab79a4744470e3d331579f93f2c097a (patch)
tree1d0ef926e78451674be2c3051efad21d20d20e6d
parent45698f2ae8ca9c38748be1893f5f18beb4853962 (diff)
downloadbash-completion-8d6570670ab79a4744470e3d331579f93f2c097a.tar.gz
(testsuite) It's not the empty alternative that's unportable with sed, it's \|.
-rwxr-xr-xtest/runLint4
1 files changed, 2 insertions, 2 deletions
diff --git a/test/runLint b/test/runLint
index 0f39b56f..d7ab7656 100755
--- a/test/runLint
+++ b/test/runLint
@@ -17,8 +17,8 @@ gitgrep "\bawk\b.*-F([[:space:]]|[[:space:]]*[\"'][^\"']{2,})" \
gitgrep '\bsed\b.*\\[?+]' \
'sed with ? or +, use POSIX BRE instead (\{m,n\})'
-gitgrep '\bsed\b.*(\(\\?\||\|\\?\))' \
- "sed with empty alternative in parens, use '\(...\)\{0,1\}' instead"
+gitgrep '\bsed\b.*\\\|' \
+ "sed with \|, use POSIX BRE (possibly multiple sed invocations) or another tool instead"
# TODO: really nonportable? appears to work fine in Linux, FreeBSD, Solaris
#gitgrep '\bsed\b.*;' \