dash.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [BUG] dash uses $* instead of $@ in variable assignments
@ 2015-11-26 19:44 Gioele Barabucci
  2015-11-26 21:07 ` Harald van Dijk
  2015-11-26 21:37 ` Stephane Chazelas
  0 siblings, 2 replies; 4+ messages in thread
From: Gioele Barabucci @ 2015-11-26 19:44 UTC (permalink / raw)
  To: dash

Hello,

I am forwarding a bug [1] reported by a Debian user: dash incorrectly
uses `$*` instead of the requested `$@` inside variable assignments.
The current version of dash is affected by this bug.

A simple test from the original reporter:

    $ dash -c 'IFS=:$IFS ; set -- a b c ; echo "$@" ; x="$@" ; echo "$x"'
    a b c
    a:b:c

    $ bash --posix -c 'IFS=:$IFS ; set -- a b c ; echo "$@" ; x="$@" ;
echo "$x"'
    a b c
    a b c

This error is reproducible with dash 0.5.7 and with the current master
git master branch, commit 2e5842258bd5b252ffdaa630db09c9a19a9717ca.

[1] https://bugs.debian.org/764365

--
Gioele Barabucci <gioele@svario.it>


^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2015-12-02 22:10 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-11-26 19:44 [BUG] dash uses $* instead of $@ in variable assignments Gioele Barabucci
2015-11-26 21:07 ` Harald van Dijk
2015-11-26 21:37 ` Stephane Chazelas
2015-12-02 22:10   ` Gioele Barabucci

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).