summaryrefslogtreecommitdiffstats
path: root/test/bashisms/glob-ignore.sh
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--test/bashisms/glob-ignore.sh4
-rw-r--r--test/bashisms/glob-ignore.sh.out2
2 files changed, 6 insertions, 0 deletions
diff --git a/test/bashisms/glob-ignore.sh b/test/bashisms/glob-ignore.sh
new file mode 100644
index 0000000..0c9cd9a
--- /dev/null
+++ b/test/bashisms/glob-ignore.sh
@@ -0,0 +1,4 @@
+#!/bin/sh
+
+GLOBIGNORE="run-tests.sh:BASHISM"
+echo *.sh | grep -q run-tests.sh || echo meh
diff --git a/test/bashisms/glob-ignore.sh.out b/test/bashisms/glob-ignore.sh.out
new file mode 100644
index 0000000..4688c7c
--- /dev/null
+++ b/test/bashisms/glob-ignore.sh.out
@@ -0,0 +1,2 @@
+possible bashism in bashisms/glob-ignore.sh line 3 (GLOBIGNORE=):
+GLOBIGNORE="run-tests.sh:BASHISM"