freebsd-skq/bin/sh/tests/expansion
jilles ee6bb75b10 sh: Allow unquoted newlines in word in ${param+word} etc.
POSIX requires accepting unquoted newlines in word in parameter expansions
like ${param+word}, ${param#word}, although the Bourne shell did not support
it, it is not commonly used and might make it harder to find a missing
closing brace.

It was also strange that something like

foo="${bar#
}"

was rejected.

Reported by:	Martijn Dekker via Robert Elz
2018-05-20 17:25:52 +00:00
..
arith1.0
arith2.0
arith3.0
arith4.0
arith5.0
arith6.0
arith7.0
arith8.0
arith9.0
arith10.0
arith11.0
arith12.0
arith13.0
arith14.0 sh: Mask off shift distance (<< and >>) in arithmetic. 2014-08-15 22:36:41 +00:00
assign1.0
cmdsubst1.0
cmdsubst2.0
cmdsubst3.0
cmdsubst4.0
cmdsubst5.0
cmdsubst6.0
cmdsubst7.0
cmdsubst8.0
cmdsubst9.0
cmdsubst10.0
cmdsubst11.0
cmdsubst12.0
cmdsubst13.0
cmdsubst14.0
cmdsubst15.0
cmdsubst16.0
cmdsubst17.0
cmdsubst18.0 sh: Add some already working tests that exercise new code paths. 2017-03-03 22:46:20 +00:00
cmdsubst19.0 sh: Add some already working tests that exercise new code paths. 2017-03-03 22:46:20 +00:00
cmdsubst20.0 sh: Add some already working tests that exercise new code paths. 2017-03-03 22:46:20 +00:00
cmdsubst21.0 sh: Fix crash if a -T trap is taken during command substitution. 2017-03-04 22:58:34 +00:00
cmdsubst22.0 sh: Fix crash if a -T trap is taken during command substitution. 2017-03-04 22:58:34 +00:00
cmdsubst23.0 sh: Fix executing wrong command with ${unsetvar#$(cmdsubst)}$(cmdsubst). 2017-03-10 16:04:00 +00:00
cmdsubst24.0 sh: Add tests for NUL byte in command substitution output. 2017-04-23 21:58:17 +00:00
cmdsubst25.0 sh: Add some tests for command substitution final newline stripping. 2017-04-27 18:52:18 +00:00
cmdsubst26.0 sh: Add some tests for command substitution final newline stripping. 2017-04-27 18:52:18 +00:00
export1.0
export2.0
export3.0
heredoc1.0
heredoc2.0
ifs1.0
ifs2.0
ifs3.0
ifs4.0
ifs5.0 sh: Add simple tests for globbing/splitting command substitution. 2015-02-15 19:48:29 +00:00
ifs6.0 sh: Add more tests for exotic IFS splitting. 2015-03-31 20:59:37 +00:00
ifs7.0 sh: Add more tests for exotic IFS splitting. 2015-03-31 20:59:37 +00:00
length1.0
length2.0
length3.0
length4.0
length5.0
length6.0
length7.0
length8.0
local1.0
local2.0
Makefile sh: Allow unquoted newlines in word in ${param+word} etc. 2018-05-20 17:25:52 +00:00
Makefile.depend DIRDEPS_BUILD: Connect MK_TESTS. 2016-03-09 22:46:01 +00:00
pathname1.0 Path generation was not according to collate 2016-07-16 13:26:18 +00:00
pathname2.0 Path generation was not according to collate 2016-07-16 13:26:18 +00:00
pathname3.0
pathname4.0
pathname5.0 sh: Add simple tests for globbing/splitting command substitution. 2015-02-15 19:48:29 +00:00
pathname6.0 Path generation was not according to collate 2016-07-16 13:26:18 +00:00
plus-minus1.0
plus-minus2.0
plus-minus3.0
plus-minus4.0
plus-minus5.0
plus-minus6.0
plus-minus7.0
plus-minus8.0
plus-minus9.0 sh: Allow unquoted newlines in word in ${param+word} etc. 2018-05-20 17:25:52 +00:00
question1.0
readonly1.0
redir1.0 sh: Fix corruption of CTL* bytes in positional parameters in redirection. 2014-10-31 22:28:10 +00:00
set-u1.0
set-u2.0
set-u3.0
tilde1.0
tilde2.0
trim1.0
trim2.0
trim3.0
trim4.0
trim5.0
trim6.0
trim7.0
trim8.0
trim9.0 sh: Add tests for #/##/%/%% on $* and $@. 2015-12-26 22:27:48 +00:00
trim10.0 sh: Allow unquoted newlines in word in ${param+word} etc. 2018-05-20 17:25:52 +00:00
trim11.0 sh: Allow unquoted newlines in word in ${param+word} etc. 2018-05-20 17:25:52 +00:00