diff options
author | jilles <jilles@FreeBSD.org> | 2015-03-14 20:40:04 +0000 |
---|---|---|
committer | jilles <jilles@FreeBSD.org> | 2015-03-14 20:40:04 +0000 |
commit | 1e6b99e844773a705057b5f08dec66bf896dbf84 (patch) | |
tree | 2e9f57cbbf856c05d47794e7bb3610e0c39b6f7a | |
parent | 96d5981c369fdf42633dace4e955f91d0f7b0a66 (diff) | |
download | FreeBSD-src-1e6b99e844773a705057b5f08dec66bf896dbf84.zip FreeBSD-src-1e6b99e844773a705057b5f08dec66bf896dbf84.tar.gz |
MFC r279722: env: Fix testsuite for additional variables set by sh.
-rw-r--r-- | tools/regression/usr.bin/env/regress-env.rgdata | 6 |
1 files 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 9f562e9..e060eac 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 |