diff options
author | Denys Vlasenko | 2017-07-24 18:51:40 +0200 |
---|---|---|
committer | Denys Vlasenko | 2017-07-24 18:51:40 +0200 |
commit | ca50caacad8354fe97eb0da23075521156c0c0d6 (patch) | |
tree | 25ac13df95cea6f1fc8cb3fe96dbe6101b48a250 /shell/hush_test | |
parent | b920a38dc0a87f5884444d4731a8b887b5e16018 (diff) | |
download | busybox-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')
-rwxr-xr-x | shell/hush_test/hush-misc/env_and_func.tests | 4 |
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" |