sh testsuite: sync ash-vars/ and hush-vars/
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
This commit is contained in:
parent
e3354bc44a
commit
0ba99705a1
@ -1,6 +1,4 @@
|
||||
a=a A=a
|
||||
a=a A=a
|
||||
a= A=
|
||||
a= A=
|
||||
a=a A=a
|
||||
a=a A=a
|
||||
http://busybox.net
|
||||
http://busybox.net_abc
|
||||
1 1
|
||||
1 1
|
||||
|
@ -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 $? ${?}; }
|
||||
|
@ -1 +1,2 @@
|
||||
bus/usb/1/2
|
||||
http://busybox.net
|
||||
http://busybox.net_abc
|
||||
|
@ -1 +1,4 @@
|
||||
X=usbdev1.2 X=${X#usbdev} B=${X%%.*} D=${X#*.}; echo bus/usb/$B/$D
|
||||
_1=http://busybox.net
|
||||
|
||||
echo $_1
|
||||
echo ${_1}_abc
|
||||
|
1
shell/ash_test/ash-vars/var4.right
Normal file
1
shell/ash_test/ash-vars/var4.right
Normal file
@ -0,0 +1 @@
|
||||
bus/usb/1/2
|
1
shell/ash_test/ash-vars/var4.tests
Executable file
1
shell/ash_test/ash-vars/var4.tests
Executable file
@ -0,0 +1 @@
|
||||
X=usbdev1.2 X=${X#usbdev} B=${X%%.*} D=${X#*.}; echo bus/usb/$B/$D
|
6
shell/ash_test/ash-vars/var5.right
Normal file
6
shell/ash_test/ash-vars/var5.right
Normal file
@ -0,0 +1,6 @@
|
||||
a=a A=a
|
||||
a=a A=a
|
||||
a= A=
|
||||
a= A=
|
||||
a=a A=a
|
||||
a=a A=a
|
14
shell/ash_test/ash-vars/var5.tests
Executable file
14
shell/ash_test/ash-vars/var5.tests
Executable file
@ -0,0 +1,14 @@
|
||||
# check that first assignment has proper effect on second one
|
||||
|
||||
(
|
||||
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)
|
||||
|
||||
f() { echo a=$a A=$A; }
|
||||
|
||||
(a=a A=$a f)
|
||||
(a=a A=$a; f)
|
0
shell/hush_test/hush-vars/var3.is.in.bugs
Normal file
0
shell/hush_test/hush-vars/var3.is.in.bugs
Normal file
Loading…
Reference in New Issue
Block a user