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