summaryrefslogtreecommitdiff
path: root/tests/braces-tests
diff options
context:
space:
mode:
Diffstat (limited to 'tests/braces-tests')
-rw-r--r--tests/braces-tests20
1 files changed, 20 insertions, 0 deletions
diff --git a/tests/braces-tests b/tests/braces-tests
new file mode 100644
index 00000000..bd8ff822
--- /dev/null
+++ b/tests/braces-tests
@@ -0,0 +1,20 @@
+echo ff{c,b,a}
+echo f{d,e,f}g
+echo {l,n,m}xyz
+echo {abc\,def}
+echo {abc}
+
+echo \{a,b,c,d,e}
+echo {x,y,\{a,b,c}}
+echo {x\,y,\{abc\},trie}
+
+echo /usr/{ucb/{ex,edit},lib/{ex,how_ex}}
+
+echo XXXX\{`echo a b c | tr ' ' ','`\}
+eval echo XXXX\{`echo a b c | tr ' ' ','`\}
+
+echo {}
+echo { }
+echo }
+echo {
+echo abcd{efgh