summaryrefslogtreecommitdiff
path: root/shell/ash_test/ash-parsing
diff options
context:
space:
mode:
authorDenys Vlasenko2018-04-02 14:27:50 +0200
committerDenys Vlasenko2018-04-02 14:27:50 +0200
commit9a95df90463ee0eddc0585f0e5affa827701fdfb (patch)
tree38e0902751c50c55ad874499b4d4be6e7f53b45c /shell/ash_test/ash-parsing
parent355ec353be14f33f69fe3e3992ab5a815b3a01a6 (diff)
downloadbusybox-9a95df90463ee0eddc0585f0e5affa827701fdfb.zip
busybox-9a95df90463ee0eddc0585f0e5affa827701fdfb.tar.gz
ash: expand: Fix bugs with words connected to the right of $@
Upstream email: This is actually composed of two bugs. First of all our tracking of quotemark is wrong so anything after "$@" becomes quoted. Once we fix that then the problem is that the first space character after "$@" is not recognised as an IFS. This patch fixes both. Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au> Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Diffstat (limited to 'shell/ash_test/ash-parsing')
-rw-r--r--shell/ash_test/ash-parsing/starquoted3.right2
-rwxr-xr-xshell/ash_test/ash-parsing/starquoted3.tests1
2 files changed, 3 insertions, 0 deletions
diff --git a/shell/ash_test/ash-parsing/starquoted3.right b/shell/ash_test/ash-parsing/starquoted3.right
new file mode 100644
index 0000000..fea246c
--- /dev/null
+++ b/shell/ash_test/ash-parsing/starquoted3.right
@@ -0,0 +1,2 @@
+<a>
+<>
diff --git a/shell/ash_test/ash-parsing/starquoted3.tests b/shell/ash_test/ash-parsing/starquoted3.tests
new file mode 100755
index 0000000..8eefe42
--- /dev/null
+++ b/shell/ash_test/ash-parsing/starquoted3.tests
@@ -0,0 +1 @@
+set -- a ""; space=" "; printf "<%s>\n" "$@"$space