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


Groups > gnu.bash.bug > #14483 > unrolled thread

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

Started byGreg Wooledge <wooledg@eeg.ccf.org>
First post2018-08-14 08:34 -0400
Last post2018-08-14 08:34 -0400
Articles 1 — 1 participant

Back to article view | Back to gnu.bash.bug

This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by below is the oldest one visible, not the original post.


Contents

  Re: Assignment of $* to a var removes spaces on unset IFS. Greg Wooledge <wooledg@eeg.ccf.org> - 2018-08-14 08:34 -0400

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

FromGreg Wooledge <wooledg@eeg.ccf.org>
Date2018-08-14 08:34 -0400
SubjectRe: Assignment of $* to a var removes spaces on unset IFS.
Message-ID<mailman.5088.1534250077.1292.bug-bash@gnu.org>
On Mon, Aug 13, 2018 at 09:36:23PM -0400, Bize Ma wrote:
> Note that 4.4.19 is newer than what is available in
> https://www.gnu.org/software/bash/

The current patch level of bash can be obtained by downloading the most
recent tarball from <http://ftp.gnu.org/gnu/bash/> and then applying the
subsequent patches from <http://ftp.gnu.org/gnu/bash/bash-4.4-patches/>,
or whichever directory is appropriate for the current version.

The patches for 4.4 currently go up to bash44-023, which would correspond
to bash version 4.4.23 once compiled.

I will also repeat, once more, my advice that one should NEVER write
a script containing an unquoted $* or $@ expansion.  It breaks in all
kinds of ways in more than one shell.  Just don't do it, and these
problems go away.

[toc] | [standalone]


Back to top | Article view | gnu.bash.bug


csiph-web