IGNOREEOF and POSIXLY_CORRECT don't ignore invisible vars

2016-06-04 Thread Grisha Levit
The manual references these values being set, not just declared, so maybe should check for invisible_p? Noticeable for example because this works: $ set +o posix; f() { local POSIXLY_CORRECT=; shopt -p -o posix; }; f; shopt -p -o posix set -o posix set +o posix But the opposite does not: $ set

Re: Global variable modification by nameref chain

2016-06-04 Thread Grisha Levit
On May 23, 2016 1:42 PM, "Chet Ramey" wrote: > > Should the assignment work? I'm considering changing the assignments to > > work more like the references. > > > > I think it would be useful for the assignment to work, as that allows > > functions to take variable names as arguments witho