Re: !& error

2023-08-20 Thread Grisha Levit
On Mon, Aug 14, 2023, 15:29 Chet Ramey wrote: > On 8/12/23 1:56 PM, Grisha Levit wrote: > > The newly added support for `! &' uses the previous value of > > the_printed_command_except_trap or segfaults if none has been made yet: > > Thanks for the report. You're Johnny on the spot here -- I

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

2023-08-20 Thread Clark Wang
On Wed, Nov 8, 2017 at 9:46 PM Chet Ramey wrote: > On 11/7/17 11:38 PM, Clark Wang wrote: > > > 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