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


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

Re: Empty ""s in ARG in ${x:+ARG} expand to no words instead of the empty word if prepended/appended with space

Started byDenys Vlasenko <dvlasenk@redhat.com>
First post2018-07-20 16:46 +0200
Last post2018-07-20 16:46 +0200
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: Empty ""s in ARG in ${x:+ARG} expand to no words instead of the empty word if prepended/appended with space Denys Vlasenko <dvlasenk@redhat.com> - 2018-07-20 16:46 +0200

#14373 — Re: Empty ""s in ARG in ${x:+ARG} expand to no words instead of the empty word if prepended/appended with space

FromDenys Vlasenko <dvlasenk@redhat.com>
Date2018-07-20 16:46 +0200
SubjectRe: Empty ""s in ARG in ${x:+ARG} expand to no words instead of the empty word if prepended/appended with space
Message-ID<mailman.3902.1532097989.1292.bug-bash@gnu.org>
On 07/20/2018 04:43 PM, Denys Vlasenko wrote:
> $  ${x:+"" }
> ^^^^^^^^^^^ prints nothing, bug?

Should be:
$ f ${x:+"" }

> $ f ${x:+"$e""$e"""}
> ^^^^^^^^^^^ prints nothing, bug?

Should be:
$ f ${x:+"$e""$e" ""}

sorry.

[toc] | [standalone]


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


csiph-web