sh: Add test for exported but unset variables

PR:		233545
This commit is contained in:
Jilles Tjoelker 2019-01-03 20:23:12 +00:00
parent 56f33d07ce
commit 993b1e419c
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=342741
2 changed files with 6 additions and 0 deletions

View file

@ -17,6 +17,7 @@ ${PACKAGE}FILES+= bg7.0
${PACKAGE}FILES+= bg8.0
${PACKAGE}FILES+= bg9.0
${PACKAGE}FILES+= bg10.0 bg10.0.stdout
${PACKAGE}FILES+= env1.0
${PACKAGE}FILES+= fork1.0
${PACKAGE}FILES+= fork2.0
${PACKAGE}FILES+= fork3.0

View file

@ -0,0 +1,5 @@
# $FreeBSD$
unset somestrangevar
export somestrangevar
[ "`$SH -c 'echo ${somestrangevar-unset}'`" = unset ]