Re: Unhelpful behaviors in 4.2.10(1)

2012-06-09 Thread Linda Walsh
Pierre Gaston wrote: trap backtrace ERR set -T To sum up ". sdf2" is returning 1 Bash considers . to be a simple command even though what's really executed is [[ $# -ge 2 ]] && echo hello. --- Right It's NOT a simple command. I am trapping on ERR, not 'anything' that

Re: Unhelpful behaviors in 4.2.10(1)

2012-06-09 Thread Pierre Gaston
On Sat, Jun 9, 2012 at 10:05 AM, Linda Walsh wrote: > > > Pierre Gaston wrote: >> >> >>> trap backtrace ERR >>> set -T >>> >> >> To sum up ". sdf2"  is returning 1 >> Bash considers . to be a simple command even though what's really >> executed is [[ $# -ge 2 ]] && echo hello. > > --- >        Rig

Re: Unhelpful behaviors in 4.2.10(1)

2012-06-09 Thread Chet Ramey
On 6/9/12 3:05 AM, Linda Walsh wrote: > >> To sum up ". sdf2" is returning 1 >> Bash considers . to be a simple command even though what's really >> executed is [[ $# -ge 2 ]] && echo hello. > --- > Right It's NOT a simple command. To be clear: `.' is a shell builtin, with its own seman

Re: Unhelpful behaviors in 4.2.10(1)

2012-06-09 Thread Linda Walsh
Chet Ramey wrote: On 6/9/12 3:05 AM, Linda Walsh wrote: To sum up ". sdf2" is returning 1 Bash considers . to be a simple command even though what's really executed is [[ $# -ge 2 ]] && echo hello. --- Right It's NOT a simple command. To be clear: `.' is a shell builtin, with its