From 935217e6d470b0819f2970a4408cedca52fd9525 Mon Sep 17 00:00:00 2001 From: Rob Landley Date: Wed, 17 Mar 2021 01:31:47 -0500 Subject: Add local variables and basic function() support plumbing. Not fully wired up yet, probably a bunch of regressions. --- tests/sh.test | 1 + 1 file changed, 1 insertion(+) (limited to 'tests') 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' '' -- cgit v1.2.3