From: Russell Harmon <russ@eatnumber1.com>
To: Russell Harmon <russ@eatnumber1.com>
Cc: Peter Stephenson <p.stephenson@samsung.com>, zsh-users@zsh.org
Subject: Re: Augmenting a Sticky Emulation Mode
Date: Mon, 29 Apr 2013 10:59:33 -0700 [thread overview]
Message-ID: <CA+zrezS4X+=rkp42WWqcYC3eFZL95DgPHmKkGaEJj+R6ZB2BNg@mail.gmail.com> (raw)
In-Reply-To: <CA+zrezT4Xn6sUPciVd=6m2M=gfTavnA8MzcjL11AzxmAGUfowA@mail.gmail.com>
[-- Attachment #1: Type: text/plain, Size: 1737 bytes --]
I'm also seeing the same odd behavior (but not the crash) on Fedora's build
of ZSH: zsh 5.0.2 (x86_64-redhat-linux-gnu)
--
Russell Harmon
On Mon, Apr 29, 2013 at 1:51 AM, Russell Harmon <russ@eatnumber1.com> wrote:
> Now this is interesting:
>
> % emulate -R sh -o noshglob -c 'foo() { print ${options[shglob]}; }'; foo
> on
> % emulate -R sh +o shglob -c 'foo() { print ${options[shglob]}; }'; foo
> off
> % emulate -R sh -o noshglob -c 'foo() { setopt; }'; foo | grep shglob;
> echo $?
> 1
> % emulate -R sh -o noshglob -c 'foo() { setopt; }'; foo
> interactive
> login
> mailwarning
> monitor
> shinstdin
> zle
> % emulate -R sh -o shglob -c 'foo() { setopt; }'; foo
> interactive
> login
> monitor
> shinstdin
> zle
> % emulate -R sh +o shglob -c 'foo() { setopt; }'; foo
> interactive
> login
> monitor
> noshglob
> shinstdin
> zle
>
>
>
> --
> Russell Harmon
>
>
> On Mon, Apr 29, 2013 at 1:47 AM, Peter Stephenson <
> p.stephenson@samsung.com> wrote:
>
>> 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
>>
>
>
prev parent reply other threads:[~2013-04-29 18:00 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
2013-04-29 8:51 ` Russell Harmon
2013-04-29 17:59 ` Russell Harmon [this message]
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+zrezS4X+=rkp42WWqcYC3eFZL95DgPHmKkGaEJj+R6ZB2BNg@mail.gmail.com' \
--to=russ@eatnumber1.com \
--cc=p.stephenson@samsung.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).