sh: Add test for exported but unset variables
PR: 233545
This commit is contained in:
parent
56f33d07ce
commit
993b1e419c
@ -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
|
||||
|
5
bin/sh/tests/execution/env1.0
Normal file
5
bin/sh/tests/execution/env1.0
Normal file
@ -0,0 +1,5 @@
|
||||
# $FreeBSD$
|
||||
|
||||
unset somestrangevar
|
||||
export somestrangevar
|
||||
[ "`$SH -c 'echo ${somestrangevar-unset}'`" = unset ]
|
Loading…
Reference in New Issue
Block a user