Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: Augmenting a Sticky Emulation Mode
- X-seq: zsh-users 17791
- From: Russell Harmon <russ@xxxxxxxxxxxxxx>
- To: Bart Schaefer <schaefer@xxxxxxxxxxxxxxxx>
- Subject: Re: Augmenting a Sticky Emulation Mode
- Date: Sun, 28 Apr 2013 22:25:00 -0700
- Cc: 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=I4hNYMesRa5aHJdLOGQWcrIhO8Vi3JhxVQI0eOV+dwU=; b=AHBNkdmdUZI+4jOUcj8CvIcALhaACh0sy/Q7fUTtosfoNkrQK6NUxtFVGGqrzJEslI W9LLggaphXNQ8xQqOBQxlQvP2JxqHPKjdqtZJNN+jLt7FS3/VeLXHFIshvsBABzbpjCK UhbiLidx45GHlavrcmigpNlryZaaxyp1ePQ3OB8O5uo+L4CbuFFBaQaON3frYMdouG5H 3uPlzlf3GhWmVP4loeoeqctKQkWR0pX81ExD9XxEZWFayxwKrYbpP8VNVnKglqV/OxVy Ntcky/LY+OhAEvvylUxyAglEGSL3WRWVy/S0Y3cDMPpP+qVFJ1WLIVdCxZ/Pj5GDeo32 NL3Q==
- 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=I4hNYMesRa5aHJdLOGQWcrIhO8Vi3JhxVQI0eOV+dwU=; b=ZUFBC4R2IvytZOgMwzn9D2Mq0P+zizVWYAnK8JmqI5TvgxtkxUPM+mpBnOheQaDQt8 1nti/b+oFmTTceZZHnZaOMFDikY6YtE3Dk2tSktXkOlkcZBcLXnxLu7EYHJslZcrT/bX duOjzPB6bsdw9JfOVMu9FU2paY71AVku+FGlU=
- In-reply-to: <130426180127.ZM18989@torch.brasslantern.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>
- Sender: eatnumber1@xxxxxxxxx
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