shell: two new tests, both fail for ash and hush

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
This commit is contained in:
Denys Vlasenko 2018-03-02 17:13:22 +01:00
parent cc222747ae
commit 744a20d8f9
8 changed files with 44 additions and 0 deletions

View File

@ -0,0 +1,5 @@
Nothing:
Nothing:
Nothing:
Nothing:
Ok:0

View 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:$?

View File

@ -0,0 +1,5 @@
z
z
y
y
Ok:0

View File

@ -0,0 +1,6 @@
x=yz
echo ${x#'y'}
echo "${x#'y'}"
echo ${x%'z'}
echo "${x%'z'}"
echo Ok:$?

View File

@ -0,0 +1,5 @@
Nothing:
Nothing:
Nothing:
Nothing:
Ok:0

View 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:$?

View File

@ -0,0 +1,5 @@
z
z
y
y
Ok:0

View File

@ -0,0 +1,6 @@
x=yz
echo ${x#'y'}
echo "${x#'y'}"
echo ${x%'z'}
echo "${x%'z'}"
echo Ok:$?