ash,hush: handle a few more bkslash-newline cases

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
This commit is contained in:
Denys Vlasenko
2018-04-01 03:04:55 +02:00
parent 32e183e63e
commit 1e5111b0f8
10 changed files with 53 additions and 3 deletions

View File

@@ -0,0 +1,4 @@
and1
and2
or1
ok

View File

@@ -0,0 +1,8 @@
echo and1 &\
& echo and2
echo or1 |\
| echo NOT SHOWN
case w in a) echo SKIP;\
; w) echo ok;; esac;

View File

@@ -0,0 +1,4 @@
Line with one backslash:
\
Ok:0

View File

@@ -0,0 +1,4 @@
echo Line with one backslash:
echo '\
'
echo Ok:$?