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
shell/hush_test/hush-vars
var-do-not-collapse-arithmetic-expansion-at-parse-time.rightvar-do-not-collapse-arithmetic-expansion-at-parse-time.testsvar-do-not-expand-tilde-in-parameter-expansion-in-quotes.rightvar-do-not-expand-tilde-in-parameter-expansion-in-quotes.testsvar-do-not-quote-backslashes-in-parameter-expansions-outside-quotes.rightvar-do-not-quote-backslashes-in-parameter-expansions-outside-quotes.testsvar-pattern-replacement-in-parameter-expansion-1.rightvar-pattern-replacement-in-parameter-expansion-1.testsvar-pattern-replacement-in-parameter-expansion-2.rightvar-pattern-replacement-in-parameter-expansion-2.testsvar-pattern-replacement-in-parameter-expansion-3.rightvar-pattern-replacement-in-parameter-expansion-3.testsvar-pattern-replacement-in-parameter-expansion-4.rightvar-pattern-replacement-in-parameter-expansion-4.testsvar-pattern-replacement-in-parameter-expansion-5.rightvar-pattern-replacement-in-parameter-expansion-5.testsvar-runtime-quote-detection.rightvar-runtime-quote-detection.tests
2
shell/hush_test/hush-vars/var-do-not-collapse-arithmetic-expansion-at-parse-time.right
Normal file
2
shell/hush_test/hush-vars/var-do-not-collapse-arithmetic-expansion-at-parse-time.right
Normal file
@ -0,0 +1,2 @@
|
||||
12
|
||||
9
|
3
shell/hush_test/hush-vars/var-do-not-collapse-arithmetic-expansion-at-parse-time.tests
Executable file
3
shell/hush_test/hush-vars/var-do-not-collapse-arithmetic-expansion-at-parse-time.tests
Executable file
@ -0,0 +1,3 @@
|
||||
unset a
|
||||
echo $((3 + ${a:=$((4 + 5))}))
|
||||
echo $a
|
1
shell/hush_test/hush-vars/var-do-not-expand-tilde-in-parameter-expansion-in-quotes.right
Normal file
1
shell/hush_test/hush-vars/var-do-not-expand-tilde-in-parameter-expansion-in-quotes.right
Normal file
@ -0,0 +1 @@
|
||||
~root
|
2
shell/hush_test/hush-vars/var-do-not-expand-tilde-in-parameter-expansion-in-quotes.tests
Executable file
2
shell/hush_test/hush-vars/var-do-not-expand-tilde-in-parameter-expansion-in-quotes.tests
Executable file
@ -0,0 +1,2 @@
|
||||
unset a
|
||||
echo "${a:-~root}"
|
1
shell/hush_test/hush-vars/var-do-not-quote-backslashes-in-parameter-expansions-outside-quotes.right
Normal file
1
shell/hush_test/hush-vars/var-do-not-quote-backslashes-in-parameter-expansions-outside-quotes.right
Normal file
@ -0,0 +1 @@
|
||||
/b/c/
|
3
shell/hush_test/hush-vars/var-do-not-quote-backslashes-in-parameter-expansions-outside-quotes.tests
Executable file
3
shell/hush_test/hush-vars/var-do-not-quote-backslashes-in-parameter-expansions-outside-quotes.tests
Executable file
@ -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…
x
Reference in New Issue
Block a user