bug-bash
[Top][All Lists]
Advanced

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

Re: remove empty '' in ${var@Q} result?


From: Clark Wang
Subject: Re: remove empty '' in ${var@Q} result?
Date: Wed, 8 Nov 2017 12:38:26 +0800

On Tue, Oct 31, 2017 at 3:53 PM, Clark Wang <dearvoid@gmail.com> wrote:

> On Tue, Oct 31, 2017 at 3:25 PM, Clark Wang <dearvoid@gmail.com> wrote:
>
>> On Mon, Oct 30, 2017 at 10:41 PM, Chet Ramey <chet.ramey@case.edu> wrote:
>>
>>>
>>> This is an effect of using single quotes in the @Q operator. If you want
>>> to single-quote a string containing single quotes, this is how you do it.
>>>
>>
>> I made a patch (also attached). Please see if it's ok.
>>
>
> Updated by dealing with empty strings (and malloc'ing 2 more bytes) though
> I'm not sure if it's necessary since the func sh_quote_reusable() already
> handles empty strings.
>

Hi Chet, do you have a look at my patch?


reply via email to

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