[Bash-completion-commits] [SCM] bash-completion branch, master, updated. 8d6570670ab79a4744470e3d331579f93f2c097a

Ville Skyttä ville.skytta at iki.fi
Sat Jan 16 13:18:27 UTC 2010


The following commit has been merged in the master branch:
commit 8d6570670ab79a4744470e3d331579f93f2c097a
Author: Ville Skyttä <ville.skytta at iki.fi>
Date:   Sat Jan 16 15:15:06 2010 +0200

    (testsuite) It's not the empty alternative that's unportable with sed, it's \|.

diff --git a/test/runLint b/test/runLint
index 0f39b56..d7ab765 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.*;' \

-- 
bash-completion



More information about the Bash-completion-commits mailing list