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


Groups > gnu.bash.bug > #14373

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

From Denys Vlasenko <dvlasenk@redhat.com>
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-20 16:46 +0200
Message-ID <mailman.3902.1532097989.1292.bug-bash@gnu.org> (permalink)
References <3d5b8d4b-b77e-2486-b45b-ca733e4d0ca0@redhat.com>

Show all headers | View raw


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.

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


Thread

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

csiph-web