Stefano Lattarini a écrit :

> I thought that when bash detect a syntax errors in a script,
> it would pass a $? != 0 to the code in the exit trap, regardless
> of whether `set -e' is active or not.

> 
> I think this can be classified as a bug in bash (in some
> situations, a very nasty one). Please let me know if I
> have misunderstood something, or if there is a simple
> workaround.

I am not familiar with the standard(s), but... isn't having expectations in
the case of syntax errors a bit far-fetched?



Reply via email to