summaryrefslogtreecommitdiffstats
path: root/test/bashisms/negations.sh
diff options
context:
space:
mode:
Diffstat (limited to 'test/bashisms/negations.sh')
-rw-r--r--test/bashisms/negations.sh11
1 files changed, 11 insertions, 0 deletions
diff --git a/test/bashisms/negations.sh b/test/bashisms/negations.sh
new file mode 100644
index 0000000..8901357
--- /dev/null
+++ b/test/bashisms/negations.sh
@@ -0,0 +1,11 @@
+#!/bin/sh
+
+case "moo" in
+ [^f]oo) # BASHISM
+ echo hey
+ ;;
+ [!f]oo)
+ echo hey
+ ;;
+esac
+