aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDenys Vlasenko <vda.linux@googlemail.com>2018-03-02 17:13:22 +0100
committerDenys Vlasenko <vda.linux@googlemail.com>2018-03-02 17:13:22 +0100
commit744a20d8f9b1baf7c8cc1ed33ec744a52c89768f (patch)
tree5e4323829b6c97fe2015e927db6431d203ef5e0a
parentcc222747ae7e264cbe9b1c8a9c253860275db8a9 (diff)
downloadbusybox-w32-744a20d8f9b1baf7c8cc1ed33ec744a52c89768f.tar.gz
busybox-w32-744a20d8f9b1baf7c8cc1ed33ec744a52c89768f.tar.bz2
busybox-w32-744a20d8f9b1baf7c8cc1ed33ec744a52c89768f.zip
shell: two new tests, both fail for ash and hush
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
-rw-r--r--shell/ash_test/ash-quoting/bkslash_in_varexp.right5
-rwxr-xr-xshell/ash_test/ash-quoting/bkslash_in_varexp.tests6
-rw-r--r--shell/ash_test/ash-quoting/squote_in_varexp.right5
-rwxr-xr-xshell/ash_test/ash-quoting/squote_in_varexp.tests6
-rw-r--r--shell/hush_test/hush-quoting/bkslash_in_varexp.right5
-rwxr-xr-xshell/hush_test/hush-quoting/bkslash_in_varexp.tests6
-rw-r--r--shell/hush_test/hush-quoting/squote_in_varexp.right5
-rwxr-xr-xshell/hush_test/hush-quoting/squote_in_varexp.tests6
8 files changed, 44 insertions, 0 deletions
diff --git a/shell/ash_test/ash-quoting/bkslash_in_varexp.right b/shell/ash_test/ash-quoting/bkslash_in_varexp.right
new file mode 100644
index 000000000..d03047024
--- /dev/null
+++ b/shell/ash_test/ash-quoting/bkslash_in_varexp.right
@@ -0,0 +1,5 @@
1Nothing:
2Nothing:
3Nothing:
4Nothing:
5Ok:0
diff --git a/shell/ash_test/ash-quoting/bkslash_in_varexp.tests b/shell/ash_test/ash-quoting/bkslash_in_varexp.tests
new file mode 100755
index 000000000..41b31ab54
--- /dev/null
+++ b/shell/ash_test/ash-quoting/bkslash_in_varexp.tests
@@ -0,0 +1,6 @@
1x=a
2echo Nothing:${x#[a\]]}
3echo Nothing:"${x#[a\]]}"
4echo Nothing:${x%[a\]]}
5echo Nothing:"${x%[a\]]}"
6echo Ok:$?
diff --git a/shell/ash_test/ash-quoting/squote_in_varexp.right b/shell/ash_test/ash-quoting/squote_in_varexp.right
new file mode 100644
index 000000000..a75c0bfd6
--- /dev/null
+++ b/shell/ash_test/ash-quoting/squote_in_varexp.right
@@ -0,0 +1,5 @@
1z
2z
3y
4y
5Ok:0
diff --git a/shell/ash_test/ash-quoting/squote_in_varexp.tests b/shell/ash_test/ash-quoting/squote_in_varexp.tests
new file mode 100755
index 000000000..a2d05a246
--- /dev/null
+++ b/shell/ash_test/ash-quoting/squote_in_varexp.tests
@@ -0,0 +1,6 @@
1x=yz
2echo ${x#'y'}
3echo "${x#'y'}"
4echo ${x%'z'}
5echo "${x%'z'}"
6echo Ok:$?
diff --git a/shell/hush_test/hush-quoting/bkslash_in_varexp.right b/shell/hush_test/hush-quoting/bkslash_in_varexp.right
new file mode 100644
index 000000000..d03047024
--- /dev/null
+++ b/shell/hush_test/hush-quoting/bkslash_in_varexp.right
@@ -0,0 +1,5 @@
1Nothing:
2Nothing:
3Nothing:
4Nothing:
5Ok:0
diff --git a/shell/hush_test/hush-quoting/bkslash_in_varexp.tests b/shell/hush_test/hush-quoting/bkslash_in_varexp.tests
new file mode 100755
index 000000000..41b31ab54
--- /dev/null
+++ b/shell/hush_test/hush-quoting/bkslash_in_varexp.tests
@@ -0,0 +1,6 @@
1x=a
2echo Nothing:${x#[a\]]}
3echo Nothing:"${x#[a\]]}"
4echo Nothing:${x%[a\]]}
5echo Nothing:"${x%[a\]]}"
6echo Ok:$?
diff --git a/shell/hush_test/hush-quoting/squote_in_varexp.right b/shell/hush_test/hush-quoting/squote_in_varexp.right
new file mode 100644
index 000000000..a75c0bfd6
--- /dev/null
+++ b/shell/hush_test/hush-quoting/squote_in_varexp.right
@@ -0,0 +1,5 @@
1z
2z
3y
4y
5Ok:0
diff --git a/shell/hush_test/hush-quoting/squote_in_varexp.tests b/shell/hush_test/hush-quoting/squote_in_varexp.tests
new file mode 100755
index 000000000..a2d05a246
--- /dev/null
+++ b/shell/hush_test/hush-quoting/squote_in_varexp.tests
@@ -0,0 +1,6 @@
1x=yz
2echo ${x#'y'}
3echo "${x#'y'}"
4echo ${x%'z'}
5echo "${x%'z'}"
6echo Ok:$?