From: Gioele Barabucci <gioele@svario.it>
To: dash@vger.kernel.org
Subject: [BUG] dash uses $* instead of $@ in variable assignments
Date: Thu, 26 Nov 2015 20:44:26 +0100 [thread overview]
Message-ID: <n37neq$eem$1@ger.gmane.org> (raw)
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>
next reply other threads:[~2015-11-26 19:44 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-11-26 19:44 Gioele Barabucci [this message]
2015-11-26 21:07 ` [BUG] dash uses $* instead of $@ in variable assignments Harald van Dijk
2015-11-26 21:37 ` Stephane Chazelas
2015-12-02 22:10 ` Gioele Barabucci
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to='n37neq$eem$1@ger.gmane.org' \
--to=gioele@svario.it \
--cc=dash@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.