env: Fix testsuite for additional variables set by sh.

MFC after:	1 week
This commit is contained in:
Jilles Tjoelker 2015-03-07 13:54:44 +00:00
parent a340dc5348
commit aad75bd7db
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=279722

View File

@ -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