ash: expand: Fix bugs with words connected to the right of $@
authorDenys Vlasenko <vda.linux@googlemail.com>
Mon, 2 Apr 2018 12:27:50 +0000 (14:27 +0200)
committerDenys Vlasenko <vda.linux@googlemail.com>
Mon, 2 Apr 2018 12:27:50 +0000 (14:27 +0200)
commit9a95df90463ee0eddc0585f0e5affa827701fdfb
tree38e0902751c50c55ad874499b4d4be6e7f53b45c
parent355ec353be14f33f69fe3e3992ab5a815b3a01a6
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>
shell/ash.c
shell/ash_test/ash-parsing/starquoted3.right [new file with mode: 0644]
shell/ash_test/ash-parsing/starquoted3.tests [new file with mode: 0755]
shell/hush_test/hush-parsing/starquoted3.right [new file with mode: 0644]
shell/hush_test/hush-parsing/starquoted3.tests [new file with mode: 0755]