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: Denys Vlasenko
Subject: Re: Empty ""s in ARG in ${x:+ARG} expand to no words instead of the empty word if prepended/appended with space
Date: Fri, 20 Jul 2018 16:46:18 +0200
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.4.0

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.



reply via email to

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