On Mon, May 24, 2021 at 11:47:32AM -0400, Chet Ramey wrote: > On 5/22/21 2:45 PM, Vincent Menegaux wrote: > > > Details: > > > > Previously, these commands: > > > > [[ ! 1 -eq 1 ]]; echo $? > > [[ ! ! 1 -eq 1 ]]; echo $? > > > > would both result in `1', since parsing `!' set CMD_INVERT_RETURN > > instead of toggling it.
I will try this as: $ [ 1 -eq 1 ]; echo $? 0 $ ! [ 1 -eq 1 ]; echo $? 1 $ ! ! [ 1 -eq 1 ]; echo $? 0 -- Félix Hauri - <fe...@f-hauri.ch> - http://www.f-hauri.ch