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 AAA03700 for ; Wed, 3 Jul 1996 00:22:00 +1000 (EST) Received: (from list@localhost) by euclid.skiles.gatech.edu (8.7.3/8.7.3) id KAA25903; Tue, 2 Jul 1996 10:14:01 -0400 (EDT) Resent-Date: Tue, 2 Jul 1996 10:14:01 -0400 (EDT) From: Anthony Heading Message-Id: <199607021412.PAA05463@et-sun4.uk.jpmorgan.com> Subject: Re: Tag functions with shell options? To: A.Main@dcs.warwick.ac.uk (Zefram) Date: Tue, 2 Jul 1996 15:12:08 +0100 (BST) Cc: zsh-workers@math.gatech.edu In-Reply-To: <9731.199607021336@stone.dcs.warwick.ac.uk> from "Zefram" at Jul 2, 96 02:36:31 pm MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Resent-Message-ID: <"a_n_X3.0.fK6.ewIsn"@euclid> Resent-From: zsh-workers@math.gatech.edu X-Mailing-List: archive/latest/1505 X-Loop: zsh-workers@math.gatech.edu Precedence: list Resent-Sender: zsh-workers-request@math.gatech.edu Zefram wrote: > >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. Thanks for the response. The trouble is that I can't alter awkward_func. Effectively I have a library of Bourne shell functions which I'd like to use from zsh, without knowing about their internals, and I can't see how to do it. Anthony