Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > gnu.bash.bug > #14479

Re: Assignment of $* to a var removes spaces on unset IFS.

Path csiph.com!goblin2!goblin3!goblin.stu.neva.ru!panix!usenet.stanford.edu!not-for-mail
From Bize Ma <binaryzebra@gmail.com>
Newsgroups gnu.bash.bug
Subject Re: Assignment of $* to a var removes spaces on unset IFS.
Date Mon, 13 Aug 2018 22:52:20 -0400
Lines 68
Approved bug-bash@gnu.org
Message-ID <mailman.5082.1534215144.1292.bug-bash@gnu.org> (permalink)
References <CAFra36g+5888jkADfSzEnP2ggKgN4XadFk91gHgnWUJ5BxNWWw@mail.gmail.com> <28958.1534206249@jinx.noi.kre.to> <CAOSMAutpQvzbwAgAv7QPc14tZ2PEi5tGPXWHfqrCY-k2AhVQSg@mail.gmail.com> <CAFra36gUtG8x8SoNP9fGNSp-X61EE0_yqebqHwqx9CXvhZ0S5w@mail.gmail.com> <20180814020952.GA20145@ubuntu>
NNTP-Posting-Host lists.gnu.org
Mime-Version 1.0
Content-Type text/plain; charset="UTF-8"
Content-Transfer-Encoding quoted-printable
X-Trace usenet.stanford.edu 1534215145 10438 208.118.235.17 (14 Aug 2018 02:52:25 GMT)
X-Complaints-To action@cs.stanford.edu
To Bize Ma <binaryzebra@gmail.com>, Robert Elz <kre@munnari.oz.au>, bug-bash <bug-bash@gnu.org>, Chet Ramey <chet.ramey@case.edu>
Envelope-to bug-bash@gnu.org
DKIM-Signature v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:in-reply-to:references:from:date:message-id:subject:to; bh=C/sV3tn4QOoFi654WCaMolX1b+a9EzIcAB45YGkcMQY=; b=NEQFMlUenpPxN6bm4if6TIamvs3kx9gfvT+NK9r+hjNx3ENk4/MD2j/N1PeHsg4m0C k7QZ51GLNADuEMpOhYa33Co+mNKaz0iebuUZ3uon9A4+CXXylo4/EyOQxlRhhxZii3O9 UwrYreT0nfMDBggbULdQKctWYMxTYW2Cvv4k2I0D/NtHowgeQQeJjDJcC6AjB3oqagW4 vSsRfJZK66c4R9UiYiSiZ02yh/aGnuUXPN1r06fCu6jHLt+0ceBe+15qpgb4Uzv7GOQ1 Ba8JTFcKLIBhxW9eyLJgvU5WSqBSkALvNlG8fnyhGO+qN3MgF/mrCP4CHAcgPyZKlTeX q1mg==
X-Google-DKIM-Signature v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to; bh=C/sV3tn4QOoFi654WCaMolX1b+a9EzIcAB45YGkcMQY=; b=Dfom/6Kz5Em8tEhe8Ptal168ixyR6+sbr8/3ddCrLWyIi0xNnzvxKbXijwdu+pxfKK QSEZMrIe8zJV3I5STxPCiClAReoVJkNSM5TlqUZ4n/I6XhYMKizbTLRvMWbB8Wj4D08m o7WYsLfLJv4vpkQ7uZCVgV+dxT7EevbEsq89KtcSj+o/A48QkYsl3HJT0LzDcy/A2wDs BHxS8AYStMsDJ+UeXr+zVpS/BQIb/2Wdj8lcY7Ldrb4Atu18wCP8xtctSlDZRiMdnk/2 2xeI3KqpACcF8zxzV0YDbZIyljklksEYPQbFzL+Y50Za0lgKv5InsxIlQFCL04fE/Opa eTAw==
X-Gm-Message-State AOUpUlFk73+J18YUzXANzHSVP6FgC+ZZE21C2P+lUZwmXiUPpzD1KPXu TDu0gPCmPy/JSdW2Ii9Y0AmFR8Ej8EPqawZd26I=
X-Google-Smtp-Source AA+uWPyqDmxMQ1P79LXcY9oUk+fOIfpyqehCJPDTV9i+v496i+9/7oUh5kamP/H2nWT0+WgbE7NK0vwmOMfDqDpnp0g=
X-Received by 2002:aca:ba57:: with SMTP id k84-v6mr18900736oif.10.1534215141051; Mon, 13 Aug 2018 19:52:21 -0700 (PDT)
In-Reply-To <20180814020952.GA20145@ubuntu>
X-detected-operating-system by eggs.gnu.org: Genre and OS details not recognized.
X-Received-From 2607:f8b0:4003:c06::22e
X-Content-Filtered-By Mailman/MimeDel 2.1.21
X-BeenThere bug-bash@gnu.org
X-Mailman-Version 2.1.21
Precedence list
List-Id Bug reports for the GNU Bourne Again SHell <bug-bash.gnu.org>
List-Unsubscribe <https://lists.gnu.org/mailman/options/bug-bash>, <mailto:bug-bash-request@gnu.org?subject=unsubscribe>
List-Archive <http://lists.gnu.org/archive/html/bug-bash/>
List-Post <mailto:bug-bash@gnu.org>
List-Help <mailto:bug-bash-request@gnu.org?subject=help>
List-Subscribe <https://lists.gnu.org/mailman/listinfo/bug-bash>, <mailto:bug-bash-request@gnu.org?subject=subscribe>
Xref csiph.com gnu.bash.bug:14479

Show key headers only | View raw


2018-08-13 22:09 GMT-04:00 Eduardo A. Bustamante López <dualbus@gmail.com>:

> On Mon, Aug 13, 2018 at 09:36:23PM -0400, Bize Ma wrote:
> (...)
> > Please, do not waste our time in incorrect claims.
> >
> > Do your homework and test !
> (...)
>
>



> dualbus@ubuntu:~/src/gnu/bash$ bash /tmp/script
> 4.4.19(1)-release
> [foo bar baz quux][  foo     bar  baz     quux  ]
>
>
So, it is confirmed that the bug exists in the present release, Is it not?

> Did you test Bash 5.0? Because that's where the current bug fixes are
going to.

So, is it a "wont fix" for 4.4 (present release) ?


> I don't see Chet releasing a new version of 4.4 to fix something that's
already
> fixed there.

That version is not even beta, it is still alpha, are you asking that
everyone should use
non-released (and not yet tested as beta) alpha release ?


> dualbus@ubuntu:~/src/gnu/bash$ cat /tmp/script
> echo $BASH_VERSION
> set -- "  foo  "    "  bar  baz  "  "  quux  "
> unset IFS
> a=$*
> b="$*"
> printf '[%s]' "$a" "$b"; echo

Thanks for copying the supplied script.....



> dualbus@ubuntu:~/src/gnu/bash$ ./bash /tmp/script
> 5.0.0(1)-alpha
> [  foo     bar  baz     quux  ][  foo     bar  baz     quux  ]
>
>
Thanks for testing. !!


> Please read this thread:
>
> * http://lists.nongnu.org/archive/html/bug-bash/2017-09/msg00058.html
>

So? It is not solved in that thread, it is even said that:

 > This is a bug in bash and it should be fixed, not excused.

To which I agree. After a year, nothing else have been said about it.

It seems about time to get it solved. Or say that it won't be.

Back to gnu.bash.bug | Previous | Next | Find similar | Unroll thread


Thread

Re: Assignment of $* to a var removes spaces on unset IFS. Bize Ma <binaryzebra@gmail.com> - 2018-08-13 22:52 -0400

csiph-web