sh: Add some tests for command substitution final newline stripping.
This commit is contained in:
parent
d7f27102b5
commit
24b55fb76d
@ -46,6 +46,8 @@ ${PACKAGE}FILES+= cmdsubst21.0
|
||||
${PACKAGE}FILES+= cmdsubst22.0
|
||||
${PACKAGE}FILES+= cmdsubst23.0
|
||||
${PACKAGE}FILES+= cmdsubst24.0
|
||||
${PACKAGE}FILES+= cmdsubst25.0
|
||||
${PACKAGE}FILES+= cmdsubst26.0
|
||||
${PACKAGE}FILES+= export1.0
|
||||
${PACKAGE}FILES+= export2.0
|
||||
${PACKAGE}FILES+= export3.0
|
||||
|
7
bin/sh/tests/expansion/cmdsubst25.0
Normal file
7
bin/sh/tests/expansion/cmdsubst25.0
Normal file
@ -0,0 +1,7 @@
|
||||
# $FreeBSD$
|
||||
|
||||
IFS=' '
|
||||
set -- `printf '\n '`
|
||||
IFS=:
|
||||
[ "$*" = '
|
||||
' ]
|
6
bin/sh/tests/expansion/cmdsubst26.0
Normal file
6
bin/sh/tests/expansion/cmdsubst26.0
Normal file
@ -0,0 +1,6 @@
|
||||
# $FreeBSD$
|
||||
|
||||
nl='
|
||||
'
|
||||
v=$nl`printf '\n'`
|
||||
[ "$v" = "$nl" ]
|
Loading…
Reference in New Issue
Block a user