Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: Augmenting a Sticky Emulation Mode
- X-seq: zsh-users 17795
- From: Russell Harmon <russ@xxxxxxxxxxxxxx>
- To: Peter Stephenson <p.stephenson@xxxxxxxxxxx>
- Subject: Re: Augmenting a Sticky Emulation Mode
- Date: Mon, 29 Apr 2013 01:51:58 -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=VLAmVIqDPO/QQtn3vpLlMRpJ28TpUtq7aCVIWOv5R/o=; b=UHPTd+0Pjr+WnrVrEPSD0nP1h8106LC84AODqOgOL8eJNjmn4n886hH5wiZFuuLsTL NWVEXMwxTYI2liYMa2C9WfslMtmceYtpw2L6LcxBiuY3EDiAdYJxgRq572da+VpxF3vF EB++sPN8hXjz1e7npkKJynWCSUh/1tOLkj95f904TqPTKAyHWqqCYuhDjOilFJGqskvm YYnOEd6AQXSk8Go8QRtuserGeDH4UseAaH1bttr4TB3vobJQHo9GK2joX7UtdHzPGZQI JxDYMR4EvgcB4XLj4Lsmf/MLrjF+TSjn5fw9z5Oy457VWtkhu+tQB1KCt6ICQh7IGtMN 33LQ==
- 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=VLAmVIqDPO/QQtn3vpLlMRpJ28TpUtq7aCVIWOv5R/o=; b=ecm6t5o8XU4uXz+4iP5huZR5pgG8TcDVTPTSp8iN75bvqJMWDupKGhsuswLPSde4Lg bdTyr9M/QqmSEmsXKMUZLR6PmNIaKf2GTZbOqzDwMxm3iau2WiFJOep9eAPKJ7mwi726 Xxshs8Rwyo6WPsyVyJhzODAgDgmMawYXxMO74=
- In-reply-to: <20130429094700.6c8db4a9@pwslap01u.europe.root.pri>
- 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>
- Sender: eatnumber1@xxxxxxxxx
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