X-Git-Url: https://git.librecmc.org/?a=blobdiff_plain;f=shell%2Fhush_test%2Fhush-vars%2Fvar3.tests;h=97b102cbede2163e0bb3273da691882e3b5f9f5d;hb=f5470419404d643070db99d058405b714695b817;hp=e09f4331780f7a29215f9250cbf428db36201bc7;hpb=d3081062453cb394052dd2d8ecda94aaaff3c6df;p=oweals%2Fbusybox.git diff --git a/shell/hush_test/hush-vars/var3.tests b/shell/hush_test/hush-vars/var3.tests index e09f43317..97b102cbe 100755 --- a/shell/hush_test/hush-vars/var3.tests +++ b/shell/hush_test/hush-vars/var3.tests @@ -1,4 +1 @@ -# reject invalid vars -"$THIS_SH" -c 'echo ${1q}' -"$THIS_SH" -c 'echo ${&}' -"$THIS_SH" -c 'echo ${$}' +x=0; f() { local x=1; echo $x; local x; echo $x; unset x; echo $x; local x; echo $x; }; f; echo $x