summaryrefslogtreecommitdiff
path: root/shell/ash_test/ash-standalone/nofork_env.tests
blob: 111e564d25bfd565c60b6b25090ccd926a2aceb1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
# ash had a bug where NOFORKed applet (env/printenv) was not seeing new exported variables

(export ZVAR=1; printenv) | grep ^ZVAR=
(ZVAR=2 printenv) | grep ^ZVAR=

(export ZVAR=3; env) | grep ^ZVAR=
(ZVAR=4 env) | grep ^ZVAR=

export ZVAR=5; printenv | grep ^ZVAR=
ZVAR=6 printenv | grep ^ZVAR=

export ZVAR=7; env | grep ^ZVAR=
ZVAR=8 env | grep ^ZVAR=

echo Ok:$?