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


Groups > gnu.bash.bug > #14483

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

Path csiph.com!goblin1!goblin.stu.neva.ru!usenet.stanford.edu!not-for-mail
From Greg Wooledge <wooledg@eeg.ccf.org>
Newsgroups gnu.bash.bug
Subject Re: Assignment of $* to a var removes spaces on unset IFS.
Date Tue, 14 Aug 2018 08:34:31 -0400
Lines 17
Approved bug-bash@gnu.org
Message-ID <mailman.5088.1534250077.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>
NNTP-Posting-Host lists.gnu.org
Mime-Version 1.0
Content-Type text/plain; charset=us-ascii
X-Trace usenet.stanford.edu 1534250078 27751 208.118.235.17 (14 Aug 2018 12:34:38 GMT)
X-Complaints-To action@cs.stanford.edu
To bug-bash@gnu.org
Envelope-to bug-bash@gnu.org
Mail-Followup-To bug-bash@gnu.org
Content-Disposition inline
In-Reply-To <CAFra36gUtG8x8SoNP9fGNSp-X61EE0_yqebqHwqx9CXvhZ0S5w@mail.gmail.com>
User-Agent NeoMutt/20170113 (1.7.2)
X-detected-operating-system by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic]
X-Received-From 139.137.100.1
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:14483

Show key headers only | View raw


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.

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


Thread

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

csiph-web