From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 22581 invoked by alias); 29 Apr 2013 18:00:13 -0000 Mailing-List: contact zsh-users-help@zsh.org; run by ezmlm Precedence: bulk X-No-Archive: yes List-Id: Zsh Users List List-Post: List-Help: X-Seq: 17797 Received: (qmail 29894 invoked from network); 29 Apr 2013 17:59:59 -0000 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on f.primenet.com.au X-Spam-Level: X-Spam-Status: No, score=-2.7 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HTML_MESSAGE,RCVD_IN_DNSWL_LOW autolearn=unavailable version=3.3.2 Received-SPF: pass (ns1.primenet.com.au: SPF record at _netblocks.google.com designates 209.85.210.180 as permitted sender) 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= X-Received: by 10.42.64.135 with SMTP id g7mr29229519ici.37.1367258394029; Mon, 29 Apr 2013 10:59:54 -0700 (PDT) MIME-Version: 1.0 Sender: eatnumber1@gmail.com In-Reply-To: References: <130426180127.ZM18989@torch.brasslantern.com> <20130429094700.6c8db4a9@pwslap01u.europe.root.pri> From: Russell Harmon Date: Mon, 29 Apr 2013 10:59:33 -0700 X-Google-Sender-Auth: cX3UxWc4l4X9J8jjpeSnqKjvwEQ Message-ID: Subject: Re: Augmenting a Sticky Emulation Mode To: Russell Harmon Cc: Peter Stephenson , zsh-users@zsh.org Content-Type: multipart/alternative; boundary=90e6ba5bbaa3e4c22b04db83a692 --90e6ba5bbaa3e4c22b04db83a692 Content-Type: text/plain; charset=UTF-8 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 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 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 >> > > --90e6ba5bbaa3e4c22b04db83a692--