hush: fix escaping of \[*?; add testsuites for these and for globbing
This commit is contained in:
@@ -0,0 +1,2 @@
|
||||
glob1.tests
|
||||
glob1.tests
|
||||
Executable
+2
@@ -0,0 +1,2 @@
|
||||
echo *glob1?t[e]sts*
|
||||
echo "glob1"?'t'[e]s*
|
||||
@@ -0,0 +1,4 @@
|
||||
\
|
||||
a\b
|
||||
\\
|
||||
c\\d
|
||||
Executable
+4
@@ -0,0 +1,4 @@
|
||||
echo "\\"
|
||||
echo a"\\"b
|
||||
echo '\\'
|
||||
echo c'\\'d
|
||||
@@ -0,0 +1,4 @@
|
||||
*?[a]*
|
||||
a*?[a]*b
|
||||
*?[a]*
|
||||
c*?[a]*d
|
||||
Executable
+4
@@ -0,0 +1,4 @@
|
||||
echo "*?[a]*"
|
||||
echo a"*?[a]*"b
|
||||
echo '*?[a]*'
|
||||
echo c'*?[a]*'d
|
||||
Reference in New Issue
Block a user