1var-1bs
2VAR1BS=:111\111:
3VAR1BSa=:111\aaa:
4VAR1BSA=:111\aaa:
5VAR1BSda=:111\${a}:
6VAR1BSdA=:111\${A}:
7VAR1BSc=:111# backslash escapes comment char, so this is part of the value:
8VAR1BSsc=:111\ :
9var-2bs
10VAR2.BS=:222\\222:
11VAR2.BS.a=:222\\aaa:
12VAR2.BS.A=:222\\aaa:
13VAR2.BS.d.a=:222\\${a}:
14VAR2.BS.d.A=:222\\${A}:
15VAR2.BS.c=:222\\:
16VAR2.BS.s.c=:222\\:
17var-1bs-nl
18VAR1.BS-NL=:111 111:
19VAR1.BS-NL.a=:111 aaa:
20VAR1.BS-NL.A=:111 aaa:
21VAR1.BS-NL.d-a=:111 ${a}:
22VAR1.BS-NL.d-A=:111 ${A}:
23VAR1.BS-NL.c=:111:
24VAR1.BS-NL.s-c=:111:
25var-2bsnl
26VAR2BSNL=:222\\:
27VAR2BSNLa=:222\\:
28VAR2BSNLA=:222\\:
29VAR2BSNLda=:222\\:
30VAR2BSNLdA=:222\\:
31VAR2BSNLc=:222\\:
32VAR2BSNLsc=:222\\:
33var-3bsnl
34VAR3BSNL=:333\\ 333=:
35VAR3BSNLa=:333\\ aaa=:
36VAR3BSNLA=:333\\ aaa=:
37VAR3BSNLda=:333\\ ${a}=:
38VAR3BSNLdA=:333\\ ${A}=:
39VAR3BSNLc=:333\\:
40VAR3BSNLsc=:333\\:
41var-1bsnl-space
42VAR1BSNL00=:first line:
43VAR1BSNL0=:first line no space on second line:
44VAR1BSNLs=:first line one space on second line:
45VAR1BSNLss=:first line two spaces on second line:
46VAR1BSNLt=:first line one tab on second line:
47VAR1BSNLtt=:first line two tabs on second line:
48VAR1BSNLxx=:first line many spaces and tabs [  	 ] on second line:
49cmd-1bsnl
50echo :'first line\
51#second line without space\
52third line':
53:first line\
54#second line without space\
55third line:
56echo :'first line\
57     second line spaces should be retained':
58:first line\
59     second line spaces should be retained:
60echo :'first line\
61second line tab should be elided':
62:first line\
63second line tab should be elided:
64echo :'first line\
65	only one tab should be elided, second tab remains'
66:first line\
67	only one tab should be elided, second tab remains
68cmd-1bsnl-eof
69echo :'command ending with backslash-newline'; \
70
71:command ending with backslash-newline
72cmd-2bsnl
73echo take one\\
74take one\
75echo take two\\
76take two\
77echo take three\\
78take three\
79cmd-3bsnl
80echo :'first line\\\
81#second line without space\\\
82third line':
83:first line\\\
84#second line without space\\\
85third line:
86echo :'first line\\\
87     second line spaces should be retained':
88:first line\\\
89     second line spaces should be retained:
90echo :'first line\\\
91second line tab should be elided':
92:first line\\\
93second line tab should be elided:
94echo :'first line\\\
95	only one tab should be elided, second tab remains'
96:first line\\\
97	only one tab should be elided, second tab remains
98exit status 0
99