bug-bash
[Top][All Lists]
Advanced

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

IGNOREEOF and POSIXLY_CORRECT don't ignore invisible vars


From: Grisha Levit
Subject: IGNOREEOF and POSIXLY_CORRECT don't ignore invisible vars
Date: Sat, 4 Jun 2016 14:30:35 -0400

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 -o posix; f() { local POSIXLY_CORRECT; shopt -p -o posix; }; f; shopt -p -o posix
set -o posix
set -o posix

reply via email to

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