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

This commit is contained in:
Ville Skyttä 2010-01-16 15:15:06 +02:00
parent 45698f2ae8
commit 8d6570670a

View File

@ -17,8 +17,8 @@ gitgrep "\bawk\b.*-F([[:space:]]|[[:space:]]*[\"'][^\"']{2,})" \
gitgrep '\bsed\b.*\\[?+]' \ gitgrep '\bsed\b.*\\[?+]' \
'sed with ? or +, use POSIX BRE instead (\{m,n\})' 'sed with ? or +, use POSIX BRE instead (\{m,n\})'
gitgrep '\bsed\b.*(\(\\?\||\|\\?\))' \ gitgrep '\bsed\b.*\\\|' \
"sed with empty alternative in parens, use '\(...\)\{0,1\}' instead" "sed with \|, use POSIX BRE (possibly multiple sed invocations) or another tool instead"
# TODO: really nonportable? appears to work fine in Linux, FreeBSD, Solaris # TODO: really nonportable? appears to work fine in Linux, FreeBSD, Solaris
#gitgrep '\bsed\b.*;' \ #gitgrep '\bsed\b.*;' \