sh: Add some tests for backslash-newline continuation.

This commit is contained in:
Jilles Tjoelker 2014-10-17 21:52:57 +00:00
parent 7e2c0c79fa
commit 334111e2df
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=273243
4 changed files with 30 additions and 0 deletions

View File

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

View File

@ -0,0 +1,16 @@
# $FreeBSD$
i\
f
t\
r\
u\
e
t\
h\
e\
n
:
\
f\
i

View File

@ -0,0 +1,4 @@
# $FreeBSD$
[ "a\
b" = ab ]

View File

@ -0,0 +1,7 @@
# $FreeBSD$
v=`printf %s 'a\
b'`
w="`printf %s 'c\
d'`"
[ "$v$w" = abcd ]