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>
This commit is contained in:
Denys Vlasenko
2018-04-02 14:27:50 +02:00
parent 355ec353be
commit 9a95df9046
5 changed files with 13 additions and 4 deletions

View File

@ -0,0 +1,2 @@
<a>
<>

View File

@ -0,0 +1 @@
set -- a ""; space=" "; printf "<%s>\n" "$@"$space