summaryrefslogtreecommitdiff
path: root/shell/hush_test/hush-misc/env_and_func.tests
blob: 3efef1a41945e92f7f3f96033a793d5f9831ed1b (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 does.
var=val f
echo "var=$var"