busybox/shell/ash_test/ash-misc/env_and_func.tests
Denys Vlasenko ca50caacad shell: some additions to *sh-misc/* tests
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
2017-07-24 18:51:40 +02:00

9 lines
277 B
Plaintext
Executable File

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"