bug-bash
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Empty ""s in ARG in ${x:+ARG} expand to no words instead of the empt


From: Robert Elz
Subject: Re: Empty ""s in ARG in ${x:+ARG} expand to no words instead of the empty word if prepended/appended with space
Date: Sun, 22 Jul 2018 00:45:43 +0700

    Date:        Sat, 21 Jul 2018 11:33:18 -0400
    From:        Chet Ramey <address@hidden>
    Message-ID:  <address@hidden>

  | 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




reply via email to

[Prev in Thread] Current Thread [Next in Thread]