summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVille Skyttä <ville.skytta@iki.fi>2010-01-17 15:36:01 +0200
committerVille Skyttä <ville.skytta@iki.fi>2010-01-17 15:36:01 +0200
commit556d1304d0ae18c6876407c99e575cf78376e694 (patch)
tree0e63358d9b2c4277e0d6444f298204d36c25c73d
parent2f78769d6537e936a4981e641eb75d229da81d98 (diff)
downloadbash-completion-556d1304d0ae18c6876407c99e575cf78376e694.tar.gz
(testsuite) Add check for awk with POSIX character classes.
-rwxr-xr-xtest/runLint5
1 files changed, 4 insertions, 1 deletions
diff --git a/test/runLint b/test/runLint
index 9a64326f..b0016763 100755
--- a/test/runLint
+++ b/test/runLint
@@ -16,7 +16,10 @@ cd $(dirname "$0") ; cd ..
gitgrep "\bawk\b.*-F([[:space:]]|[[:space:]]*[\"'][^\"']{2,})" \
'awk with -F char or -F ERE, use -Fchar instead (Solaris)'
-
+
+gitgrep "\bawk\b.*\[:[a-z]*:\]" \
+ 'awk with POSIX character class not supported in mawk (Debian/Ubuntu)'
+
gitgrep '\bsed\b.*\\[?+]' \
'sed with ? or +, use POSIX BRE instead (\{m,n\})'