Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: Augmenting a Sticky Emulation Mode
- X-seq: zsh-users 17790
- From: Bart Schaefer <schaefer@xxxxxxxxxxxxxxxx>
- To: zsh-users@xxxxxxx
- Subject: Re: Augmenting a Sticky Emulation Mode
- Date: Fri, 26 Apr 2013 18:01:27 -0700
- In-reply-to: <CA+zrezRfVDfTHYMMj2HpeyrUJvyuTQ=p+PL0tV6u3hcZ1nOfAw@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>
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