test: add substitution tests.
This commit is contained in:
parent
3c7b22febf
commit
29ae8bc570
2
check.sh
2
check.sh
|
@ -72,6 +72,8 @@ tests='
|
||||||
30-substitution-backtick
|
30-substitution-backtick
|
||||||
30-substitution-assignment
|
30-substitution-assignment
|
||||||
30-for-substitution
|
30-for-substitution
|
||||||
|
30-substitution-assignment
|
||||||
|
30-substitution-redirect
|
||||||
|
|
||||||
40-eval
|
40-eval
|
||||||
40-eval-echo-variable
|
40-eval-echo-variable
|
||||||
|
|
|
@ -1,3 +1,2 @@
|
||||||
f=test/test.sh
|
echo=$(echo 1 2 3)
|
||||||
b=test/$(basename $f .sh)
|
echo echo=$echo
|
||||||
echo b=$b
|
|
||||||
|
|
|
@ -1 +1 @@
|
||||||
b=test/test
|
echo=1 2 3
|
||||||
|
|
|
@ -0,0 +1 @@
|
||||||
|
echo $(echo foo bar baz 2>/dev/null)
|
|
@ -0,0 +1 @@
|
||||||
|
foo bar baz
|
Loading…
Reference in New Issue