zsh-users
 help / color / mirror / code / Atom feed
From: Peter Stephenson <p.stephenson@samsung.com>
To: Russell Harmon <russ@eatnumber1.com>, zsh-users@zsh.org
Subject: Re: Augmenting a Sticky Emulation Mode
Date: Mon, 29 Apr 2013 09:47:00 +0100	[thread overview]
Message-ID: <20130429094700.6c8db4a9@pwslap01u.europe.root.pri> (raw)
In-Reply-To: <CA+zrezTCVO58URokScwT45VHa_MkgpvnEuNbvzB+Uk97+WpQRQ@mail.gmail.com>

On Sun, 28 Apr 2013 22:44:17 -0700
Russell Harmon <russ@eatnumber1.com> wrote:
> 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

Something *is* a bit wacky here, maybe not what you're seeing...
You need the zsh/parameter module loaded, which it probably will be for
completion.

% emulate -R sh -o noshglob -c 'foo() { print ${options[shglob]}; }'; foo
on
% emulate -R sh +o shglob -c 'foo() { print ${options[shglob]}; }'; foo
off

I can't think of any good reason why they should be different, though
maybe it'll occur to me if I look deeper.

pws


  parent reply	other threads:[~2013-04-29  8:57 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
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 [this message]
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=20130429094700.6c8db4a9@pwslap01u.europe.root.pri \
    --to=p.stephenson@samsung.com \
    --cc=russ@eatnumber1.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).