hush: fix escaping of \[*?; add testsuites for these and for globbing
This commit is contained in:
4
shell/hush_test/hush-parsing/escape1.right
Normal file
4
shell/hush_test/hush-parsing/escape1.right
Normal file
@@ -0,0 +1,4 @@
|
||||
\
|
||||
a\b
|
||||
\\
|
||||
c\\d
|
||||
4
shell/hush_test/hush-parsing/escape1.tests
Executable file
4
shell/hush_test/hush-parsing/escape1.tests
Executable file
@@ -0,0 +1,4 @@
|
||||
echo "\\"
|
||||
echo a"\\"b
|
||||
echo '\\'
|
||||
echo c'\\'d
|
||||
4
shell/hush_test/hush-parsing/escape2.right
Normal file
4
shell/hush_test/hush-parsing/escape2.right
Normal file
@@ -0,0 +1,4 @@
|
||||
*?[a]*
|
||||
a*?[a]*b
|
||||
*?[a]*
|
||||
c*?[a]*d
|
||||
4
shell/hush_test/hush-parsing/escape2.tests
Executable file
4
shell/hush_test/hush-parsing/escape2.tests
Executable file
@@ -0,0 +1,4 @@
|
||||
echo "*?[a]*"
|
||||
echo a"*?[a]*"b
|
||||
echo '*?[a]*'
|
||||
echo c'*?[a]*'d
|
||||
Reference in New Issue
Block a user