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


Groups > gnu.bash.bug > #15646

Re: Saving/restoring of posix option unsets expand_aliases

Path csiph.com!goblin2!goblin1!goblin.stu.neva.ru!usenet.stanford.edu!not-for-mail
From Ulrich Mueller <ulm@gentoo.org>
Newsgroups gnu.bash.bug
Subject Re: Saving/restoring of posix option unsets expand_aliases
Date Tue, 26 Nov 2019 01:34:07 +0100
Lines 23
Approved bug-bash@gnu.org
Message-ID <mailman.2652.1574729073.13325.bug-bash@gnu.org> (permalink)
References <w6g1rtxjvuf.fsf@kph.uni-mainz.de> <5db52484-0586-0225-7f14-43cc799372c6@case.edu> <w6g5zj7iigw.fsf@kph.uni-mainz.de>
NNTP-Posting-Host lists.gnu.org
Mime-Version 1.0
Content-Type text/plain
X-Trace usenet.stanford.edu 1574729073 23269 209.51.188.17 (26 Nov 2019 00:44:33 GMT)
X-Complaints-To action@cs.stanford.edu
Cc bug-bash@gnu.org
To Chet Ramey <chet.ramey@case.edu>
Envelope-to bug-bash@gnu.org
In-Reply-To <5db52484-0586-0225-7f14-43cc799372c6@case.edu> (Chet Ramey's message of "Mon, 25 Nov 2019 15:02:13 -0500")
User-Agent Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (gnu/linux)
X-detected-operating-system by eggs.gnu.org: Genre and OS details not recognized.
X-Received-From 140.211.166.183
X-BeenThere bug-bash@gnu.org
X-Mailman-Version 2.1.23
Precedence list
List-Id Bug reports for the GNU Bourne Again SHell <bug-bash.gnu.org>
List-Unsubscribe <https://lists.gnu.org/mailman/options/bug-bash>, <mailto:bug-bash-request@gnu.org?subject=unsubscribe>
List-Archive <https://lists.gnu.org/archive/html/bug-bash>
List-Post <mailto:bug-bash@gnu.org>
List-Help <mailto:bug-bash-request@gnu.org?subject=help>
List-Subscribe <https://lists.gnu.org/mailman/listinfo/bug-bash>, <mailto:bug-bash-request@gnu.org?subject=subscribe>
X-Mailman-Original-Message-ID <w6g5zj7iigw.fsf@kph.uni-mainz.de>
X-Mailman-Original-References <w6g1rtxjvuf.fsf@kph.uni-mainz.de> <5db52484-0586-0225-7f14-43cc799372c6@case.edu>
Xref csiph.com gnu.bash.bug:15646

Show key headers only | View raw


>>>>> On Mon, 25 Nov 2019, Chet Ramey wrote:

> On 11/24/19 7:35 AM, Ulrich Mueller wrote:
>> Description:
>> In a non-interactive non-posix-mode shell, saving the output of
>> "shopt -p -o" and restoring it will unset the expand_aliases option.

> It seems like setting posix mode when it's already set, or unsetting
> it when it's not, should be a no-op instead of guaranteeing a certain
> environment (posix or default). That's easy enough.

Right, this is where I think that the current behavior is a bug.

> There's no question that setting posix mode should change the values
> of a number of bash options to produce a compliant environment.

> It's a different question whether or not unsetting posix mode should
> revert to the settings before posix mode was enabled or restore the
> default environment. It's always meant the latter.

No strong opinion about that one, but maybe the latter is the more
predictable behavior?

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


Thread

Re: Saving/restoring of posix option unsets expand_aliases Ulrich Mueller <ulm@gentoo.org> - 2019-11-26 01:34 +0100

csiph-web