Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > gnu.bash.bug > #14140

[BUG] assignments preceding 'read' persist past command in POSIX mode

From Martijn Dekker <martijn@inlv.org>
Newsgroups gnu.bash.bug
Subject [BUG] assignments preceding 'read' persist past command in POSIX mode
Date 2018-05-24 23:23 +0200
Message-ID <mailman.421.1527197023.1292.bug-bash@gnu.org> (permalink)

Show all headers | View raw


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,

- M.

Back to gnu.bash.bug | Previous | Next | Find similar | Unroll thread


Thread

[BUG] assignments preceding 'read' persist past command in POSIX mode Martijn Dekker <martijn@inlv.org> - 2018-05-24 23:23 +0200

csiph-web