Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: Augmenting a Sticky Emulation Mode
- X-seq: zsh-users 17797
- From: Russell Harmon <russ@xxxxxxxxxxxxxx>
- To: Russell Harmon <russ@xxxxxxxxxxxxxx>
- Subject: Re: Augmenting a Sticky Emulation Mode
- Date: Mon, 29 Apr 2013 10:59:33 -0700
- Cc: Peter Stephenson <p.stephenson@xxxxxxxxxxx>, 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=TiqsQZyK9Sryh5ySbH3njDEo+Vj+Nm3n9GPsN46XVfA=; b=wPaRFvSO7J/O/RGGNcGJ9jycr4Te80ZlP+oDEPh8Dkmqgyd8emrL/whlQaIoGTDPGb fFWFvsw2iLKCV2WuTO3RFLOCOQKhXBwvn3uHuNRWvAIKJs4SGUZCai64L2LLQcIBVEHu I0Nxlry96m/jlylfUBrpwToVmt7ZSfr+xG+MCekVM551CM9qcOKhyTh01ie8Sa3zgazX iyjP7z1k3NnH9mohBsd9kmXdEEcatP8E+YlAXhK9RuxvznHMb5sGGcfKvJShXScw5xQm qUSKSXnJLsERypylvrAMRJBowr9HC/EihUC3a3UB4vIJaUYmZTgkNla8wZMJK6hRXbzL vjaQ==
- 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=TiqsQZyK9Sryh5ySbH3njDEo+Vj+Nm3n9GPsN46XVfA=; b=t5A8VHlJhZjgAO/BGibvlXjiKeOu1RLmx5l3ibdHZzjbd7iYHkKaLc2GydzgLQSn2U ASrV/2yIOYkbFb5kPAnyb2oVMjkCIH/OuIzp+InTvxmhiHhYtpKuwPU4eF1r+U9/FLJ7 AxnP+FYf4ioIbvSHKFRb3n967ku1IQ3oaCU34=
- In-reply-to: <CA+zrezT4Xn6sUPciVd=6m2M=gfTavnA8MzcjL11AzxmAGUfowA@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> <130426180127.ZM18989@torch.brasslantern.com> <CA+zrezROkjsD5mum5TCZ02h5Z+MTWiHC59cyuAyt1J0xpgUG+g@mail.gmail.com> <CA+zrezTCVO58URokScwT45VHa_MkgpvnEuNbvzB+Uk97+WpQRQ@mail.gmail.com> <20130429094700.6c8db4a9@pwslap01u.europe.root.pri> <CA+zrezT4Xn6sUPciVd=6m2M=gfTavnA8MzcjL11AzxmAGUfowA@mail.gmail.com>
- Sender: eatnumber1@xxxxxxxxx
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@xxxxxxxxxxxxxx> 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@xxxxxxxxxxx> wrote:
>
>> On Sun, 28 Apr 2013 22:44:17 -0700
>> Russell Harmon <russ@xxxxxxxxxxxxxx> 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
>>
>
>
Messages sorted by:
Reverse Date,
Date,
Thread,
Author