Re: Editing previous lines while in here-document mode (<

2018-05-22 Thread Bob Proulx
Garreau, Alexandre wrote: > Subject: Editing previous lines while in here-document mode (< Not only because this is often frustrating and impractical, but also > because this tends to cause inconsistency feeling, I think it would be > ... This is just my opinion but one that follows from the timel

Re: Conditions with logical operators and nested groups execute "if" and "else"

2018-05-22 Thread Greg Wooledge
On Mon, May 21, 2018 at 04:17:18PM -0500, Uriel wrote: > [[ EXPRESSION ]]; && { TRUE CONDITION; } || { ALTERNATIVE RESULT; } https://mywiki.wooledge.org/BashPitfalls#pf22

Re: Conditions with logical operators and nested groups execute "if" and "else"

2018-05-22 Thread Ilkka Virta
On 22.5. 00:17, Uriel wrote: As you know, a conditional is of the type: if [[ EXPRESSION ]]; then TRUE CONDITION; else ALTERNATIVE RESULT; fi Or with logical operators and groups: [[ EXPRESSION ]] && { TRUE CONDITION; } || { ALTERNATIVE RESULT; } No, those are not the same. In the latter, the