hush: reinstate hush_test, add testcases for process subst
This commit is contained in:
4
shell/hush_test/hush-vars/var.right
Normal file
4
shell/hush_test/hush-vars/var.right
Normal file
@@ -0,0 +1,4 @@
|
||||
http://busybox.net
|
||||
http://busybox.net_abc
|
||||
1
|
||||
0
|
10
shell/hush_test/hush-vars/var.tests
Executable file
10
shell/hush_test/hush-vars/var.tests
Executable file
@@ -0,0 +1,10 @@
|
||||
URL=http://busybox.net
|
||||
|
||||
echo $URL
|
||||
echo ${URL}_abc
|
||||
|
||||
true
|
||||
false; echo $?
|
||||
true
|
||||
# BUG: prints 0, must be 1
|
||||
{ false; echo $?; }
|
Reference in New Issue
Block a user