bug-bash
[Top][All Lists]
Advanced

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

Re: [BUG] assignments preceding 'read' persist past command in POSIX mod


From: Chet Ramey
Subject: Re: [BUG] assignments preceding 'read' persist past command in POSIX mode
Date: Fri, 25 May 2018 10:48:47 -0400
User-agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.13; rv:52.0) Gecko/20100101 Thunderbird/52.8.0

On 5/24/18 5:23 PM, Martijn Dekker wrote:
> In bash-20180511 and bash-20180518 snapshots and in bash 5.0.0-alpha, in
> POSIX mode, assignments preceding 'read' incorrectly persist past the
> command. 'read' is a regular builtin so they should not persist.
> 
> $ ./bash -o posix -c 'v=ok; v=bug read x </dev/null; echo "$v"'
> bug
> 
> This is especially problematic because IFS assignments persist too.

Thanks for the report.


-- 
``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]