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

Re: Augmenting a Sticky Emulation Mode



I'm also a little confused here.

emulate -R sh -o noshglob -c 'foo() {; setopt; }'; foo
enables MAIL_WARNING while
emulate -R sh -o shglob -c 'foo() {; setopt; }'; foo
fails to enable shglob

--
Russell Harmon


On Sun, Apr 28, 2013 at 10:25 PM, Russell Harmon <russ@xxxxxxxxxxxxxx>wrote:

> 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