From: Zefram <zefram@tao.co.uk>
To: borsenkow.msk@sni.de (Andrej Borsenkow)
Cc: zsh-workers@math.gatech.edu
Subject: Re: emulate -R resets localoptions
Date: Fri, 5 Jun 1998 09:44:19 +0100 (BST) [thread overview]
Message-ID: <199806050844.JAA20993@taos.demon.co.uk> (raw)
In-Reply-To: <005901bd9057$b7a4fe80$21c9ca95@ao13.mow.sni.de> from "Andrej Borsenkow" at Jun 5, 98 11:58:23 am
Andrej Borsenkow wrote:
>emulate -R seems to reset *all* options, in particular localoptions.
That's what it's supposed to do. At least, it is supposed to reset all
configuration options -- it does not set the options relating to the
state of the shell, such as INTERACTIVE and PRIVILEGED.
> it breaks my simple notion, that I should be able to say
>
>function foo() {
> setopt localoptions
>
>and then set *any* option without fear, that it will mess the caller.
You can't set NO_LOCAL_OPTIONS without fear in any case. Your `simple
notation' is wrong -- you should set LOCAL_OPTIONS *after* setting
other options. LOCAL_OPTIONS is tested when the function returns,
not when options are set.
-zefram
next prev parent reply other threads:[~1998-06-05 8:48 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
1998-06-05 7:58 Andrej Borsenkow
1998-06-05 8:44 ` Zefram [this message]
1998-06-05 8:54 ` Bart Schaefer
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=199806050844.JAA20993@taos.demon.co.uk \
--to=zefram@tao.co.uk \
--cc=borsenkow.msk@sni.de \
--cc=zsh-workers@math.gatech.edu \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.vuxu.org/mirror/zsh/
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).