On 7/5/19 6:30 PM, charles.deleda...@gmail.com wrote:

> Bash Version: 5.0
> Patch Level: 3
> Release Status: release
> 
> Description:
>       Using a subshell environment in an if statement screws up my $LINENO 
> variable, see minimal reproducible code below.
>       The problem occurs only if the condition is true (meaning the subshell 
> is executed). Same problem occurs if the subshell is in a while/for loop 
> iterating at least once.
>       The problem occurs with Bash 5.0.3. It does not occur with 4.2.3 or 
> 3.2.57. See discussion here: 
> https://stackoverflow.com/questions/56909685/weird-behavior-of-lineno-in-a-bash-script-using-subshells-in-if-statements

Thanks for the report. This was fixed back in mid-March, and the fix is
in the devel branch.

-- 
``The lyf so short, the craft so long to lerne.'' - Chaucer
                 ``Ars longa, vita brevis'' - Hippocrates
Chet Ramey, UTech, CWRU    c...@case.edu    http://tiswww.cwru.edu/~chet/

Reply via email to