From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from euclid.skiles.gatech.edu (list@euclid.skiles.gatech.edu [130.207.146.50]) by melb.werple.net.au (8.7.5/8.7.3/2) with ESMTP id GAA26392 for ; Fri, 26 Jul 1996 06:51:49 +1000 (EST) Received: (from list@localhost) by euclid.skiles.gatech.edu (8.7.3/8.7.3) id QAA27750; Thu, 25 Jul 1996 16:48:36 -0400 (EDT) Resent-Date: Thu, 25 Jul 1996 16:48:36 -0400 (EDT) From: "Bart Schaefer" Message-Id: <960725134630.ZM14515@candle.brasslantern.com> Date: Thu, 25 Jul 1996 13:46:30 -0700 In-Reply-To: Zoltan Hidvegi "Re: False alarm (nonomatch and cshnullglob)" (Jul 25, 10:10pm) References: <199607252010.WAA29712@bolyai.cs.elte.hu> Reply-To: schaefer@nbn.com X-Mailer: Z-Mail (4.0b.702 02jul96) To: Zoltan Hidvegi Subject: Re: False alarm (nonomatch and cshnullglob) Cc: zsh-workers@math.gatech.edu MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Resent-Message-ID: <"q42eJ3.0.Wn6.aszzn"@euclid> Resent-From: zsh-workers@math.gatech.edu X-Mailing-List: archive/latest/1771 X-Loop: zsh-workers@math.gatech.edu Precedence: list Resent-Sender: zsh-workers-request@math.gatech.edu On Jul 25, 10:10pm, Zoltan Hidvegi wrote: } Subject: Re: False alarm (nonomatch and cshnullglob) } } > I should have mentioned that this implementation is not suitable for use } > in combination with "setopt localoptions" in shell functions. If you } > use this wrapper, then your shell functions that desire localoptions need } > to always use "builtin setopt". } > } > Having the behavior itself built in to zsh would eliminate that problem. } } Note that a function can always change options of the caller by unsetting } localoptions before return. Yes, which means that any function that's going to be a wrapper around "setopt" has to unsetopt localoptions, which is what my functions do. Thus even if you try to setopt localoptions, the setopt wrapper will still change the options of the caller. If you can think of a workaround for this, I'd be thrilled to hear it. -- Bart Schaefer Brass Lantern Enterprises http://www.well.com/user/barts http://www.nbn.com/people/lantern New male in /home/schaefer: >N 2 Justin William Schaefer Sat May 11 03:43 53/4040 "Happy Birthday"