From 9a95df90463ee0eddc0585f0e5affa827701fdfb Mon Sep 17 00:00:00 2001 From: Denys Vlasenko Date: Mon, 2 Apr 2018 14:27:50 +0200 Subject: 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 Signed-off-by: Denys Vlasenko --- shell/ash_test/ash-parsing/starquoted3.right | 2 ++ shell/ash_test/ash-parsing/starquoted3.tests | 1 + 2 files changed, 3 insertions(+) create mode 100644 shell/ash_test/ash-parsing/starquoted3.right create mode 100755 shell/ash_test/ash-parsing/starquoted3.tests (limited to 'shell/ash_test/ash-parsing') 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 @@ + +<> 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 -- cgit v1.1