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 AAA03228 for ; Wed, 3 Jul 1996 00:02:55 +1000 (EST) Received: (from list@localhost) by euclid.skiles.gatech.edu (8.7.3/8.7.3) id JAA25519; Tue, 2 Jul 1996 09:50:52 -0400 (EDT) Resent-Date: Tue, 2 Jul 1996 09:50:52 -0400 (EDT) From: Zefram Message-Id: <9731.199607021336@stone.dcs.warwick.ac.uk> Subject: Re: Tag functions with shell options? To: aheading@jpmorgan.com (Anthony Heading) Date: Tue, 2 Jul 1996 14:36:31 +0100 (BST) Cc: zsh-workers@math.gatech.edu In-Reply-To: <199607021205.NAA18450@gmp-etpres1.uk.jpmorgan.com> from "Anthony Heading" at Jul 2, 96 01:05:29 pm X-Loop: zefram@dcs.warwick.ac.uk X-Stardate: [-31]7747.83 X-US-Congress: Moronic fuckers MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Resent-Message-ID: <"-Nxn63.0.cE6.xaIsn"@euclid> Resent-From: zsh-workers@math.gatech.edu X-Mailing-List: archive/latest/1504 X-Loop: zsh-workers@math.gatech.edu Precedence: list Resent-Sender: zsh-workers-request@math.gatech.edu >So I think I need some way of marking these functions to be interpreted with >SH_WORD_SPLIT turned on locally. Or have I missed something simple? awkward_func () { setopt local_options sh_word_split ... } This will set SH_WORD_SPLIT for the duration of the function, restoring the state when it returns. -zefram