Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: Tag functions with shell options?
- X-seq: zsh-workers 1504
- From: Zefram <A.Main@xxxxxxxxxxxxxxxxx>
- To: aheading@xxxxxxxxxxxx (Anthony Heading)
- Subject: Re: Tag functions with shell options?
- Date: Tue, 2 Jul 1996 14:36:31 +0100 (BST)
- Cc: zsh-workers@xxxxxxxxxxxxxxx
- In-reply-to: <199607021205.NAA18450@xxxxxxxxxxxxxxxxxxxxxxxxxxx> from "Anthony Heading" at Jul 2, 96 01:05:29 pm
>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
Messages sorted by:
Reverse Date,
Date,
Thread,
Author