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:
parent
523006798c
commit
9a595bb36d
@ -0,0 +1,2 @@
|
||||
12
|
||||
9
|
@ -0,0 +1,3 @@
|
||||
unset a
|
||||
echo $((3 + ${a:=$((4 + 5))}))
|
||||
echo $a
|
@ -0,0 +1 @@
|
||||
~root
|
@ -0,0 +1,2 @@
|
||||
unset a
|
||||
echo "${a:-~root}"
|
@ -0,0 +1 @@
|
||||
/b/c/
|
@ -0,0 +1,3 @@
|
||||
a=/b/c/*
|
||||
b=\\
|
||||
echo ${a%$b*}
|
@ -0,0 +1 @@
|
||||
a_\_z_c
|
@ -0,0 +1,2 @@
|
||||
v="a\bc"
|
||||
echo ${v/\\b/_\\_\z_}
|
@ -0,0 +1 @@
|
||||
ax/yc
|
@ -0,0 +1,2 @@
|
||||
v="abc"
|
||||
echo ${v/b/x/y}
|
@ -0,0 +1 @@
|
||||
axcabc
|
@ -0,0 +1,2 @@
|
||||
v="abcabc"
|
||||
echo ${v/b/x}
|
@ -0,0 +1 @@
|
||||
axcaxc
|
@ -0,0 +1,2 @@
|
||||
v="abcabc"
|
||||
echo ${v//b/x}
|
@ -0,0 +1 @@
|
||||
axc
|
@ -0,0 +1,2 @@
|
||||
v="ab/c"
|
||||
echo ${v/b\//x}
|
@ -0,0 +1 @@
|
||||
<>
|
1
shell/hush_test/hush-vars/var-runtime-quote-detection.tests
Executable file
1
shell/hush_test/hush-vars/var-runtime-quote-detection.tests
Executable file
@ -0,0 +1 @@
|
||||
foo=\\ echo "<${foo#[\\]}>"
|
Loading…
Reference in New Issue
Block a user