Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: Augmenting a Sticky Emulation Mode
- X-seq: zsh-users 17792
- From: Russell Harmon <russ@xxxxxxxxxxxxxx>
- To: Russell Harmon <russ@xxxxxxxxxxxxxx>
- Subject: Re: Augmenting a Sticky Emulation Mode
- Date: Sun, 28 Apr 2013 22:44:17 -0700
- Cc: Bart Schaefer <schaefer@xxxxxxxxxxxxxxxx>, zsh-users@xxxxxxx
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=x-received:mime-version:sender:in-reply-to:references:from:date :x-google-sender-auth:message-id:subject:to:cc:content-type; bh=69HPb3lF2Gb3mRjlf9U1VRezdYitgmqBP8MV3vwlCs0=; b=o5njoiK1g0MnohSNmHqWgDnLdU07EyrRLaF+QG0Er1IT0Z4lY6V6AxVL2ReRUQXIse lN8UtaWPjIqvDJY43nF5OsWZTlbW/rjzvbZN2w5Z3xkP2eJzusEMwwIZcqtaItQaRppf K2+1bSdor/unoR0iC6Bht7BPvU2DWa8KUzLukqwkqQ3QPfyMAX1wXdY9OH6QYi2q597m 7bYCpmJLdL92RTn0m/UxKtpjKkQXD3X5cBayXZd7fR6HtL6mQ40StWAK/0vKCg8M0s/g Xn7GD/S/Id86jOUZP0xBod0F7ljnYIjHDynHuPbvgi9nK/apDiKLFVRBoxjxnbpxxt78 eBow==
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=eatnumber1.com; s=google; h=x-received:mime-version:sender:in-reply-to:references:from:date :x-google-sender-auth:message-id:subject:to:cc:content-type; bh=69HPb3lF2Gb3mRjlf9U1VRezdYitgmqBP8MV3vwlCs0=; b=pDofi8EdMRPOqRoL64BuNlApm5JUdn5fbwlLuIpq+u6AXKwKCE2ZcZqa0/4GGfyktW KhTRPAr6Uj284fYKnMdiRWsk4hVmqLjlCoz5D1HrXiN4VkmAAXnwvdVif7NFDn57MfTI 4K89tBq9o++tbeMjZeNqZEnInEd4G15L6ysho=
- In-reply-to: <CA+zrezROkjsD5mum5TCZ02h5Z+MTWiHC59cyuAyt1J0xpgUG+g@mail.gmail.com>
- List-help: <mailto:zsh-users-help@zsh.org>
- List-id: Zsh Users List <zsh-users.zsh.org>
- List-post: <mailto:zsh-users@zsh.org>
- Mailing-list: contact zsh-users-help@xxxxxxx; run by ezmlm
- References: <CA+zrezRfVDfTHYMMj2HpeyrUJvyuTQ=p+PL0tV6u3hcZ1nOfAw@mail.gmail.com> <130426180127.ZM18989@torch.brasslantern.com> <CA+zrezROkjsD5mum5TCZ02h5Z+MTWiHC59cyuAyt1J0xpgUG+g@mail.gmail.com>
- Sender: eatnumber1@xxxxxxxxx
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