From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 15369 invoked from network); 5 Jun 1998 08:12:58 -0000 Received: from math.gatech.edu (list@130.207.146.50) by ns1.primenet.com.au with SMTP; 5 Jun 1998 08:12:58 -0000 Received: (from list@localhost) by math.gatech.edu (8.8.5/8.8.5) id EAA16168; Fri, 5 Jun 1998 04:00:50 -0400 (EDT) Resent-Date: Fri, 5 Jun 1998 04:00:50 -0400 (EDT) Message-ID: <005901bd9057$b7a4fe80$21c9ca95@ao13.mow.sni.de> From: "Andrej Borsenkow" To: "ZSH workers mailing list" Subject: emulate -R resets localoptions Date: Fri, 5 Jun 1998 11:58:23 +0400 MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 4.72.2106.4 X-MimeOLE: Produced By Microsoft MimeOLE V4.72.2106.4 Resent-Message-ID: <"RDww22.0.Wy3.nMwTr"@math> Resent-From: zsh-workers@math.gatech.edu X-Mailing-List: archive/latest/4048 X-Loop: zsh-workers@math.gatech.edu Precedence: list Resent-Sender: zsh-workers-request@math.gatech.edu emulate -R seems to reset *all* options, in particular localoptions. I find it confusing; 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. May be, there shoud be some flag (EXPLICIT or like), which says, that option can be reset only explicitly? ============================================================ Andrej Borsenkow Fax: +7 (095) 796 99 20 SNI ITS Moscow Tel: +7 (095) 796 99 24 NERV: borsenkow.msk E-Mail: borsenkow.msk@sni.de ============================================================