summaryrefslogtreecommitdiff
path: root/shell/hush_test/hush-misc
diff options
context:
space:
mode:
authorDenys Vlasenko2017-07-24 18:51:40 +0200
committerDenys Vlasenko2017-07-24 18:51:40 +0200
commitca50caacad8354fe97eb0da23075521156c0c0d6 (patch)
tree25ac13df95cea6f1fc8cb3fe96dbe6101b48a250 /shell/hush_test/hush-misc
parentb920a38dc0a87f5884444d4731a8b887b5e16018 (diff)
downloadbusybox-ca50caacad8354fe97eb0da23075521156c0c0d6.zip
busybox-ca50caacad8354fe97eb0da23075521156c0c0d6.tar.gz
shell: some additions to *sh-misc/* tests
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Diffstat (limited to 'shell/hush_test/hush-misc')
-rwxr-xr-xshell/hush_test/hush-misc/env_and_func.tests4
1 files changed, 4 insertions, 0 deletions
diff --git a/shell/hush_test/hush-misc/env_and_func.tests b/shell/hush_test/hush-misc/env_and_func.tests
index 1d4eaf3..3efef1a 100755
--- a/shell/hush_test/hush-misc/env_and_func.tests
+++ b/shell/hush_test/hush-misc/env_and_func.tests
@@ -1,4 +1,8 @@
var=old
f() { echo "var=$var"; }
+# bash: POSIXLY_CORRECT behavior is to "leak" new variable values
+# out of function invocations (similar to "special builtins" behavior);
+# but in "bash mode", they don't leak.
+# hush does not "leak" values. ash does.
var=val f
echo "var=$var"