From: Anthony Heading <aheading@jpmorgan.com>
To: A.Main@dcs.warwick.ac.uk (Zefram)
Cc: zsh-workers@math.gatech.edu
Subject: Re: Tag functions with shell options?
Date: Tue, 2 Jul 1996 15:12:08 +0100 (BST) [thread overview]
Message-ID: <199607021412.PAA05463@et-sun4.uk.jpmorgan.com> (raw)
In-Reply-To: <9731.199607021336@stone.dcs.warwick.ac.uk> from "Zefram" at Jul 2, 96 02:36:31 pm
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
next prev parent reply other threads:[~1996-07-02 14:22 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
1996-07-02 12:05 Anthony Heading
1996-07-02 13:36 ` Zefram
1996-07-02 14:12 ` Anthony Heading [this message]
1996-07-02 15:17 ` Zefram
1996-07-02 15:37 ` Peter Stephenson
1996-07-02 16:57 ` Anthony Heading
1996-07-02 19:07 ` Bart Schaefer
1996-07-02 19:53 ` Anthony Heading
1996-07-02 21:31 ` Bart Schaefer
1996-07-02 22:27 ` Anthony Heading
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=199607021412.PAA05463@et-sun4.uk.jpmorgan.com \
--to=aheading@jpmorgan.com \
--cc=A.Main@dcs.warwick.ac.uk \
--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).