aboutsummaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorRob Landley <rob@landley.net>2021-03-17 01:31:47 -0500
committerRob Landley <rob@landley.net>2021-03-17 01:31:47 -0500
commit935217e6d470b0819f2970a4408cedca52fd9525 (patch)
treeb4d43778f9d0009fa1412871a3113330bb99893a /tests
parent8c7af93bde1798da7d59182201b3599158bf926d (diff)
downloadtoybox-935217e6d470b0819f2970a4408cedca52fd9525.tar.gz
Add local variables and basic function() support plumbing.
Not fully wired up yet, probably a bunch of regressions.
Diffstat (limited to 'tests')
-rw-r--r--tests/sh.test1
1 files changed, 1 insertions, 0 deletions
diff --git a/tests/sh.test b/tests/sh.test
index abbb1c6e..efd906d6 100644
--- a/tests/sh.test
+++ b/tests/sh.test
@@ -99,6 +99,7 @@ testing 'prefix is local for builtins' 'abc=123; abc=def unset abc; echo $abc' \
testing 'prefix localizes magic vars' \
'SECONDS=123; SECONDS=345 true; echo $SECONDS' '123\n' '' ''
shxpect 'body evaluated before variable exports' I$'a=x${} y${}\n' RE'y${}'
+testing '$NOTHING clears $_' 'true; $NOTHING; echo $_' '\n' '' ''
testing 'exec exitval' "$SH -c 'exec echo hello' && echo \$?" "hello\n0\n" "" ""
testing 'simple script' '$SH input' 'input\n' 'echo $0' ''