Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > gnu.bash.bug > #14380
| From | Robert Elz <kre@munnari.OZ.AU> |
|---|---|
| Newsgroups | gnu.bash.bug |
| Subject | Re: Empty ""s in ARG in ${x:+ARG} expand to no words instead of the empty word if prepended/appended with space |
| Date | 2018-07-22 00:45 +0700 |
| Message-ID | <mailman.3989.1532195197.1292.bug-bash@gnu.org> (permalink) |
| References | <2fe93203-93fd-2a97-ff54-7cb748294640@case.edu> <3d5b8d4b-b77e-2486-b45b-ca733e4d0ca0@redhat.com> <20180720223753294160030@bob.proulx.com> |
Date: Sat, 21 Jul 2018 11:33:18 -0400
From: Chet Ramey <chet.ramey@case.edu>
Message-ID: <2fe93203-93fd-2a97-ff54-7cb748294640@case.edu>
| Even if the whitespace gets stripped out, the quoted null string should
| result in an empty argument.
Yes, it certainly should (and unless IFS has been set "oddly"
the white space will be removed, but that's irrelevant).
For what it is worth, as recently as 4.2.0 (and maybe more recently)
bash got this right, so it is something that has changed in 4.3 or 4.4
(or maybe later in 4.2).
kre
Back to gnu.bash.bug | Previous | Next | Find similar | Unroll thread
Re: Empty ""s in ARG in ${x:+ARG} expand to no words instead of the empty word if prepended/appended with space Robert Elz <kre@munnari.OZ.AU> - 2018-07-22 00:45 +0700
csiph-web