[Bug 4243] hush parsing of ${1+"$@"}
bugzilla at busybox.net
bugzilla at busybox.net
Sun Oct 21 17:59:20 UTC 2012
https://bugs.busybox.net/show_bug.cgi?id=4243
--- Comment #2 from Mike Frysinger <vapier at gentoo.org> 2012-10-21 17:59:18 UTC ---
(In reply to comment #1)
i think it breaks down into two parts. there's:
${1+word}
which, if $1 is set, substitutes the words
then there's "$@" which expands the array of words.
so it should be:
$ set -- '1 2' 3 4
$ printf '%s\n' "$@"
1 2
3
4
you could e-mail austin-group-l at opengroup.org for an interpretation ... i'm
sure someone will be able to get the details for you
--
Configure bugmail: https://bugs.busybox.net/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
More information about the busybox-cvs
mailing list