diff options
author | Denis Vlasenko | 2008-06-10 20:13:40 +0000 |
---|---|---|
committer | Denis Vlasenko | 2008-06-10 20:13:40 +0000 |
commit | 43360e51781942730f91bb19821e3f8f1087e4fa (patch) | |
tree | aed87780129aa4f24a47c868c1067bf44b92a55b /shell/hush_test/hush-parsing | |
parent | 2e76c3f9016f674dad7a38ec7ba5b068d233f189 (diff) | |
download | busybox-43360e51781942730f91bb19821e3f8f1087e4fa.zip busybox-43360e51781942730f91bb19821e3f8f1087e4fa.tar.gz |
hush: fix escaping of \[*?; add testsuites for these and for globbing
Diffstat (limited to 'shell/hush_test/hush-parsing')
-rw-r--r-- | shell/hush_test/hush-parsing/escape1.right | 4 | ||||
-rwxr-xr-x | shell/hush_test/hush-parsing/escape1.tests | 4 | ||||
-rw-r--r-- | shell/hush_test/hush-parsing/escape2.right | 4 | ||||
-rwxr-xr-x | shell/hush_test/hush-parsing/escape2.tests | 4 |
4 files changed, 16 insertions, 0 deletions
diff --git a/shell/hush_test/hush-parsing/escape1.right b/shell/hush_test/hush-parsing/escape1.right new file mode 100644 index 0000000..1899b87 --- /dev/null +++ b/shell/hush_test/hush-parsing/escape1.right @@ -0,0 +1,4 @@ +\ +a\b +\\ +c\\d diff --git a/shell/hush_test/hush-parsing/escape1.tests b/shell/hush_test/hush-parsing/escape1.tests new file mode 100755 index 0000000..67cfd1f --- /dev/null +++ b/shell/hush_test/hush-parsing/escape1.tests @@ -0,0 +1,4 @@ +echo "\\" +echo a"\\"b +echo '\\' +echo c'\\'d diff --git a/shell/hush_test/hush-parsing/escape2.right b/shell/hush_test/hush-parsing/escape2.right new file mode 100644 index 0000000..f55fd4a --- /dev/null +++ b/shell/hush_test/hush-parsing/escape2.right @@ -0,0 +1,4 @@ +*?[a]* +a*?[a]*b +*?[a]* +c*?[a]*d diff --git a/shell/hush_test/hush-parsing/escape2.tests b/shell/hush_test/hush-parsing/escape2.tests new file mode 100755 index 0000000..ee71801 --- /dev/null +++ b/shell/hush_test/hush-parsing/escape2.tests @@ -0,0 +1,4 @@ +echo "*?[a]*" +echo a"*?[a]*"b +echo '*?[a]*' +echo c'*?[a]*'d |