diff options
author | Denys Vlasenko <vda.linux@googlemail.com> | 2018-04-01 03:04:55 +0200 |
---|---|---|
committer | Denys Vlasenko <vda.linux@googlemail.com> | 2018-04-01 03:04:55 +0200 |
commit | 1e5111b0f80b1f3d7f2fc8254cb70de067317403 (patch) | |
tree | ee7a49ce2dad513159b7c62e43d7a645950bf207 /shell/ash_test | |
parent | 32e183e63ecb46595a480ab66120795ed9c9e0df (diff) | |
download | busybox-w32-1e5111b0f80b1f3d7f2fc8254cb70de067317403.tar.gz busybox-w32-1e5111b0f80b1f3d7f2fc8254cb70de067317403.tar.bz2 busybox-w32-1e5111b0f80b1f3d7f2fc8254cb70de067317403.zip |
ash,hush: handle a few more bkslash-newline cases
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Diffstat (limited to 'shell/ash_test')
4 files changed, 20 insertions, 0 deletions
diff --git a/shell/ash_test/ash-parsing/bkslash_newline1.right b/shell/ash_test/ash-parsing/bkslash_newline1.right new file mode 100644 index 000000000..97ea0c197 --- /dev/null +++ b/shell/ash_test/ash-parsing/bkslash_newline1.right | |||
@@ -0,0 +1,4 @@ | |||
1 | and1 | ||
2 | and2 | ||
3 | or1 | ||
4 | ok | ||
diff --git a/shell/ash_test/ash-parsing/bkslash_newline1.tests b/shell/ash_test/ash-parsing/bkslash_newline1.tests new file mode 100755 index 000000000..6e374c4fb --- /dev/null +++ b/shell/ash_test/ash-parsing/bkslash_newline1.tests | |||
@@ -0,0 +1,8 @@ | |||
1 | echo and1 &\ | ||
2 | & echo and2 | ||
3 | |||
4 | echo or1 |\ | ||
5 | | echo NOT SHOWN | ||
6 | |||
7 | case w in a) echo SKIP;\ | ||
8 | ; w) echo ok;; esac; | ||
diff --git a/shell/ash_test/ash-parsing/bkslash_newline2.right b/shell/ash_test/ash-parsing/bkslash_newline2.right new file mode 100644 index 000000000..c863c5453 --- /dev/null +++ b/shell/ash_test/ash-parsing/bkslash_newline2.right | |||
@@ -0,0 +1,4 @@ | |||
1 | Line with one backslash: | ||
2 | \ | ||
3 | |||
4 | Ok:0 | ||
diff --git a/shell/ash_test/ash-parsing/bkslash_newline2.tests b/shell/ash_test/ash-parsing/bkslash_newline2.tests new file mode 100755 index 000000000..47d63042d --- /dev/null +++ b/shell/ash_test/ash-parsing/bkslash_newline2.tests | |||
@@ -0,0 +1,4 @@ | |||
1 | echo Line with one backslash: | ||
2 | echo '\ | ||
3 | ' | ||
4 | echo Ok:$? | ||