summary refs log tree commit diff
path: root/src/funcs
diff options
context:
space:
mode:
authorHerbert Xu <herbert@gondor.apana.org.au>2018-03-22 17:32:55 +0800
committerHerbert Xu <herbert@gondor.apana.org.au>2018-04-02 23:30:44 +0800
commitf88078247635fd076c935af6413f75395d5159da (patch)
treee0b605d53c62c83457534846999d9dc33d12388a /src/funcs
parentRevert "[BUILTIN] Remove unnecessary restoration of format string in printf" (diff)
downloaddash-f88078247635fd076c935af6413f75395d5159da.tar.gz
dash-f88078247635fd076c935af6413f75395d5159da.zip
expand: Fix bugs with words connected to the right of $@
On Sun, Mar 04, 2018 at 12:44:59PM +0100, Harald van Dijk wrote:
>
> command:      set -- a ""; space=" "; printf "<%s>" "$@"$space
> bash:         <a><>
> dash 0.5.8:   <a>< >
> dash 0.5.9.1: <a>< >
> dash patched: <a><>

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>
Diffstat (limited to '')
0 files changed, 0 insertions, 0 deletions