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

2017-10-31 Thread Clark Wang
On Mon, Oct 30, 2017 at 10:41 PM, Chet Ramey 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. Tested with arr=('' a \' \'\' \'\

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

2017-10-31 Thread Clark Wang
On Tue, Oct 31, 2017 at 3:25 PM, Clark Wang wrote: > On Mon, Oct 30, 2017 at 10:41 PM, Chet Ramey 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 attac