summaryrefslogtreecommitdiffstats
path: root/test/bashisms/brace-expansion.sh
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--test/bashisms/brace-expansion.sh9
-rw-r--r--test/bashisms/brace-expansion.sh.out10
2 files changed, 19 insertions, 0 deletions
diff --git a/test/bashisms/brace-expansion.sh b/test/bashisms/brace-expansion.sh
new file mode 100644
index 0000000..c34ea21
--- /dev/null
+++ b/test/bashisms/brace-expansion.sh
@@ -0,0 +1,9 @@
+#!/bin/sh
+
+echo BASHISM{1..10}
+echo BASHISM{1..10..2}
+echo BASHISM{a..z}
+echo BASHISM{Z..a}
+echo BASHISM{a..z..2}
+echo {a.._}
+echo {a..9}
diff --git a/test/bashisms/brace-expansion.sh.out b/test/bashisms/brace-expansion.sh.out
new file mode 100644
index 0000000..843dc32
--- /dev/null
+++ b/test/bashisms/brace-expansion.sh.out
@@ -0,0 +1,10 @@
+possible bashism in bashisms/brace-expansion.sh line 3 (brace expansion, {a..b[..c]}should be $(seq a [c] b)):
+echo BASHISM{1..10}
+possible bashism in bashisms/brace-expansion.sh line 4 (brace expansion, {a..b[..c]}should be $(seq a [c] b)):
+echo BASHISM{1..10..2}
+possible bashism in bashisms/brace-expansion.sh line 5 (brace expansion):
+echo BASHISM{a..z}
+possible bashism in bashisms/brace-expansion.sh line 6 (brace expansion):
+echo BASHISM{Z..a}
+possible bashism in bashisms/brace-expansion.sh line 7 (brace expansion):
+echo BASHISM{a..z..2}