bug-bash
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [bug #67486] Can't use if with two separate awk floating number ...


From: Chet Ramey
Subject: Re: [bug #67486] Can't use if with two separate awk floating number ...
Date: Tue, 9 Sep 2025 09:50:33 -0400
User-agent: Mozilla Thunderbird

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    chet@case.edu    http://tiswww.cwru.edu/~chet/



reply via email to

[Prev in Thread] Current Thread [Next in Thread]