zsh-users
 help / color / mirror / code / Atom feed
From: Russell Harmon <russ@eatnumber1.com>
To: Bart Schaefer <schaefer@brasslantern.com>
Cc: zsh-users@zsh.org
Subject: Re: Augmenting a Sticky Emulation Mode
Date: Sun, 28 Apr 2013 22:25:00 -0700	[thread overview]
Message-ID: <CA+zrezROkjsD5mum5TCZ02h5Z+MTWiHC59cyuAyt1J0xpgUG+g@mail.gmail.com> (raw)
In-Reply-To: <130426180127.ZM18989@torch.brasslantern.com>

[-- Attachment #1: Type: text/plain, Size: 700 bytes --]

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@brasslantern.com>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
>

  reply	other threads:[~2013-04-29  5:25 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-04-26 21:40 Russell Harmon
2013-04-27  1:01 ` Bart Schaefer
2013-04-29  5:25   ` Russell Harmon [this message]
2013-04-29  5:44     ` Russell Harmon
2013-04-29  6:25       ` Bart Schaefer
2013-04-29  6:43         ` Russell Harmon
2013-04-29  8:47       ` Peter Stephenson
2013-04-29  8:51         ` Russell Harmon
2013-04-29 17:59           ` Russell Harmon

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=CA+zrezROkjsD5mum5TCZ02h5Z+MTWiHC59cyuAyt1J0xpgUG+g@mail.gmail.com \
    --to=russ@eatnumber1.com \
    --cc=schaefer@brasslantern.com \
    --cc=zsh-users@zsh.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.vuxu.org/mirror/zsh/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).