On 9/9/25 7:19 AM, Greg Wooledge wrote:
Bash will exit on non-success exit code of the first awk statement,
so the if statement will be incorrectly evaluated.
If bash is actually *exiting*, that implies that set -e may be in effect,
which opens up a whole new dimension of excitement.
If you take the poster's words at face value, they're either not using
`set -e' or using it in some unusual way, since -e isn't in effect for
the command list following `if'.
--
``The lyf so short, the craft so long to lerne.'' - Chaucer
``Ars longa, vita brevis'' - Hippocrates
Chet Ramey, UTech, CWRU [email protected] http://tiswww.cwru.edu/~chet/