From aad75bd7dbb2bbb52a4aead42133e521997502fc Mon Sep 17 00:00:00 2001 From: Jilles Tjoelker Date: Sat, 7 Mar 2015 13:54:44 +0000 Subject: [PATCH] env: Fix testsuite for additional variables set by sh. MFC after: 1 week --- tools/regression/usr.bin/env/regress-env.rgdata | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/tools/regression/usr.bin/env/regress-env.rgdata b/tools/regression/usr.bin/env/regress-env.rgdata index 9f562e9c9e55..e060eac6fef8 100644 --- a/tools/regression/usr.bin/env/regress-env.rgdata +++ b/tools/regression/usr.bin/env/regress-env.rgdata @@ -235,9 +235,9 @@ gblenv=OUTSIDEVAR=OutsideValue script:/bin/echo "=== set ===" script:# drop some environment variables that 'sh' itself sets, and script:# then have 'set' print out all remaining environment variables. - script:# (can't unset OPTIND, so we use grep to get rid of that) - script:unset -v IFS PS1 PS2 PPID - script:set | grep -v '^OPTIND=' | sort + script:# (can't unset OPTIND/PWD, so we use grep to get rid of those) + script:unset -v IFS PS1 PS2 PS4 PPID + script:set | grep -Ev '^(OPTIND|PWD)=' | sort stdout:=== set === stdout:PATH=/bin:/usr/bin:/Not stdout:TESTVAR=SbValue