Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

Re: Augmenting a Sticky Emulation Mode



Works great, thanks.

I notice however that the following crashes zsh: emulate -R sh -o
braceexpand -c 'foo() {; setopt; }'
(specifically, setting braceexpand this way causes the crash)

--
Russell Harmon


On Fri, Apr 26, 2013 at 6:01 PM, Bart Schaefer <schaefer@xxxxxxxxxxxxxxxx>wrote:

> On Apr 26,  2:40pm, Russell Harmon wrote:
> }
> } Is it possible to augment a sticky emulation mode with additional
> options?
>
> Yes, but it requires version 5.0.x.
>
> } Specifically, I'd like the something like the following to return zero:
> } emulate -R sh -c 'setopt kshglob; function foo() {; setopt; }'; foo |
> grep kshglob
>
> emulate -R sh -o kshglob -c 'foo() {; setopt; }'; foo | grep kshglob
>


Messages sorted by: Reverse Date, Date, Thread, Author