aboutsummaryrefslogtreecommitdiff
path: root/shell/hush_test/hush-misc/env_and_func.tests
blob: 1c63eafd80270d1d39073273db336b2ccf96bcfd (plain)
1
2
3
4
5
6
7
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 used to, but now does not.
var=val f
echo "var=$var"