sh: Add some tests for backslash-newline continuation.
This commit is contained in:
parent
7e2c0c79fa
commit
334111e2df
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=273243
@ -55,6 +55,9 @@ FILES+= heredoc9.0
|
||||
FILES+= heredoc10.0
|
||||
FILES+= heredoc11.0
|
||||
FILES+= heredoc12.0
|
||||
FILES+= line-cont1.0
|
||||
FILES+= line-cont2.0
|
||||
FILES+= line-cont3.0
|
||||
FILES+= no-space1.0
|
||||
FILES+= no-space2.0
|
||||
FILES+= only-redir1.0
|
||||
|
16
bin/sh/tests/parser/line-cont1.0
Normal file
16
bin/sh/tests/parser/line-cont1.0
Normal file
@ -0,0 +1,16 @@
|
||||
# $FreeBSD$
|
||||
|
||||
i\
|
||||
f
|
||||
t\
|
||||
r\
|
||||
u\
|
||||
e
|
||||
t\
|
||||
h\
|
||||
e\
|
||||
n
|
||||
:
|
||||
\
|
||||
f\
|
||||
i
|
4
bin/sh/tests/parser/line-cont2.0
Normal file
4
bin/sh/tests/parser/line-cont2.0
Normal file
@ -0,0 +1,4 @@
|
||||
# $FreeBSD$
|
||||
|
||||
[ "a\
|
||||
b" = ab ]
|
7
bin/sh/tests/parser/line-cont3.0
Normal file
7
bin/sh/tests/parser/line-cont3.0
Normal file
@ -0,0 +1,7 @@
|
||||
# $FreeBSD$
|
||||
|
||||
v=`printf %s 'a\
|
||||
b'`
|
||||
w="`printf %s 'c\
|
||||
d'`"
|
||||
[ "$v$w" = abcd ]
|
Loading…
Reference in New Issue
Block a user