summaryrefslogtreecommitdiff
path: root/shell/ash_test/ash-vars/var1.tests
diff options
context:
space:
mode:
authorDenys Vlasenko2016-10-02 18:17:15 +0200
committerDenys Vlasenko2016-10-02 18:17:15 +0200
commit0ba99705a112d37822f34619b893cf7205a2663c (patch)
tree225768b5b4075e3d535754066171fcc1d7b7ac74 /shell/ash_test/ash-vars/var1.tests
parente3354bc44aa92c20bec0ffdc78e6b57351e8f16d (diff)
downloadbusybox-0ba99705a112d37822f34619b893cf7205a2663c.zip
busybox-0ba99705a112d37822f34619b893cf7205a2663c.tar.gz
sh testsuite: sync ash-vars/ and hush-vars/
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Diffstat (limited to 'shell/ash_test/ash-vars/var1.tests')
-rwxr-xr-xshell/ash_test/ash-vars/var1.tests19
1 files changed, 7 insertions, 12 deletions
diff --git a/shell/ash_test/ash-vars/var1.tests b/shell/ash_test/ash-vars/var1.tests
index 802e489..48a6782 100755
--- a/shell/ash_test/ash-vars/var1.tests
+++ b/shell/ash_test/ash-vars/var1.tests
@@ -1,14 +1,9 @@
-# check that first assignment has proper effect on second one
+URL=http://busybox.net
-(
-a=a A=$a
-echo a=$a A=$A
-)
-(a=a A=$a; echo a=$a A=$A)
-(a=a A=$a echo a=$a A=$A)
-(a=a A=$a /bin/echo a=$a A=$A)
+echo $URL
+echo ${URL}_abc
-f() { echo a=$a A=$A; }
-
-(a=a A=$a f)
-(a=a A=$a; f)
+true
+false; echo $? ${?}
+true
+{ false; echo $? ${?}; }