diff options
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 @@ | |||
1 | Nothing: | ||
2 | Nothing: | ||
3 | Nothing: | ||
4 | Nothing: | ||
5 | Ok: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 @@ | |||
1 | x=a | ||
2 | echo Nothing:${x#[a\]]} | ||
3 | echo Nothing:"${x#[a\]]}" | ||
4 | echo Nothing:${x%[a\]]} | ||
5 | echo Nothing:"${x%[a\]]}" | ||
6 | echo 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 @@ | |||
1 | z | ||
2 | z | ||
3 | y | ||
4 | y | ||
5 | Ok: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 @@ | |||
1 | x=yz | ||
2 | echo ${x#'y'} | ||
3 | echo "${x#'y'}" | ||
4 | echo ${x%'z'} | ||
5 | echo "${x%'z'}" | ||
6 | echo 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 @@ | |||
1 | Nothing: | ||
2 | Nothing: | ||
3 | Nothing: | ||
4 | Nothing: | ||
5 | Ok: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 @@ | |||
1 | x=a | ||
2 | echo Nothing:${x#[a\]]} | ||
3 | echo Nothing:"${x#[a\]]}" | ||
4 | echo Nothing:${x%[a\]]} | ||
5 | echo Nothing:"${x%[a\]]}" | ||
6 | echo 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 @@ | |||
1 | z | ||
2 | z | ||
3 | y | ||
4 | y | ||
5 | Ok: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 @@ | |||
1 | x=yz | ||
2 | echo ${x#'y'} | ||
3 | echo "${x#'y'}" | ||
4 | echo ${x%'z'} | ||
5 | echo "${x%'z'}" | ||
6 | echo Ok:$? | ||