diff options
| author | Herbert Xu <herbert@gondor.apana.org.au> | 2018-03-22 17:32:55 +0800 |
|---|---|---|
| committer | Herbert Xu <herbert@gondor.apana.org.au> | 2018-04-02 23:30:44 +0800 |
| commit | f88078247635fd076c935af6413f75395d5159da (patch) | |
| tree | e0b605d53c62c83457534846999d9dc33d12388a /src/funcs/kill | |
| parent | Revert "[BUILTIN] Remove unnecessary restoration of format string in printf" (diff) | |
| download | dash-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 'src/funcs/kill')
0 files changed, 0 insertions, 0 deletions