shell: two new tests, both fail for ash and hush
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
This commit is contained in:
parent
cc222747ae
commit
744a20d8f9
5
shell/ash_test/ash-quoting/bkslash_in_varexp.right
Normal file
5
shell/ash_test/ash-quoting/bkslash_in_varexp.right
Normal file
@ -0,0 +1,5 @@
|
||||
Nothing:
|
||||
Nothing:
|
||||
Nothing:
|
||||
Nothing:
|
||||
Ok:0
|
6
shell/ash_test/ash-quoting/bkslash_in_varexp.tests
Executable file
6
shell/ash_test/ash-quoting/bkslash_in_varexp.tests
Executable file
@ -0,0 +1,6 @@
|
||||
x=a
|
||||
echo Nothing:${x#[a\]]}
|
||||
echo Nothing:"${x#[a\]]}"
|
||||
echo Nothing:${x%[a\]]}
|
||||
echo Nothing:"${x%[a\]]}"
|
||||
echo Ok:$?
|
5
shell/ash_test/ash-quoting/squote_in_varexp.right
Normal file
5
shell/ash_test/ash-quoting/squote_in_varexp.right
Normal file
@ -0,0 +1,5 @@
|
||||
z
|
||||
z
|
||||
y
|
||||
y
|
||||
Ok:0
|
6
shell/ash_test/ash-quoting/squote_in_varexp.tests
Executable file
6
shell/ash_test/ash-quoting/squote_in_varexp.tests
Executable file
@ -0,0 +1,6 @@
|
||||
x=yz
|
||||
echo ${x#'y'}
|
||||
echo "${x#'y'}"
|
||||
echo ${x%'z'}
|
||||
echo "${x%'z'}"
|
||||
echo Ok:$?
|
5
shell/hush_test/hush-quoting/bkslash_in_varexp.right
Normal file
5
shell/hush_test/hush-quoting/bkslash_in_varexp.right
Normal file
@ -0,0 +1,5 @@
|
||||
Nothing:
|
||||
Nothing:
|
||||
Nothing:
|
||||
Nothing:
|
||||
Ok:0
|
6
shell/hush_test/hush-quoting/bkslash_in_varexp.tests
Executable file
6
shell/hush_test/hush-quoting/bkslash_in_varexp.tests
Executable file
@ -0,0 +1,6 @@
|
||||
x=a
|
||||
echo Nothing:${x#[a\]]}
|
||||
echo Nothing:"${x#[a\]]}"
|
||||
echo Nothing:${x%[a\]]}
|
||||
echo Nothing:"${x%[a\]]}"
|
||||
echo Ok:$?
|
5
shell/hush_test/hush-quoting/squote_in_varexp.right
Normal file
5
shell/hush_test/hush-quoting/squote_in_varexp.right
Normal file
@ -0,0 +1,5 @@
|
||||
z
|
||||
z
|
||||
y
|
||||
y
|
||||
Ok:0
|
6
shell/hush_test/hush-quoting/squote_in_varexp.tests
Executable file
6
shell/hush_test/hush-quoting/squote_in_varexp.tests
Executable file
@ -0,0 +1,6 @@
|
||||
x=yz
|
||||
echo ${x#'y'}
|
||||
echo "${x#'y'}"
|
||||
echo ${x%'z'}
|
||||
echo "${x%'z'}"
|
||||
echo Ok:$?
|
Loading…
Reference in New Issue
Block a user