hush: add recent ash tests to hush testsuite too (they all pass for hush)

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
This commit is contained in:
Denys Vlasenko 2015-05-18 10:23:16 +02:00
parent 523006798c
commit 9a595bb36d
18 changed files with 29 additions and 0 deletions

View File

@ -0,0 +1,3 @@
unset a
echo $((3 + ${a:=$((4 + 5))}))
echo $a

View File

@ -0,0 +1,2 @@
unset a
echo "${a:-~root}"

View File

@ -0,0 +1,3 @@
a=/b/c/*
b=\\
echo ${a%$b*}

View File

@ -0,0 +1,2 @@
v="a\bc"
echo ${v/\\b/_\\_\z_}

View File

@ -0,0 +1,2 @@
v="abc"
echo ${v/b/x/y}

View File

@ -0,0 +1,2 @@
v="abcabc"
echo ${v/b/x}

View File

@ -0,0 +1,2 @@
v="abcabc"
echo ${v//b/x}

View File

@ -0,0 +1,2 @@
v="ab/c"
echo ${v/b\//x}

View File

@ -0,0 +1 @@
<>

View File

@ -0,0 +1 @@
foo=\\ echo "<${foo#[\\]}>"