From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 8233 invoked by alias); 29 Apr 2013 08:52:29 -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: 17795 Received: (qmail 16363 invoked from network); 29 Apr 2013 08:52:26 -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=ham version=3.3.2 Received-SPF: pass (ns1.primenet.com.au: SPF record at _netblocks.google.com designates 209.85.210.177 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=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= X-Received: by 10.50.12.133 with SMTP id y5mr6943668igb.108.1367225538902; Mon, 29 Apr 2013 01:52:18 -0700 (PDT) MIME-Version: 1.0 Sender: eatnumber1@gmail.com In-Reply-To: <20130429094700.6c8db4a9@pwslap01u.europe.root.pri> References: <130426180127.ZM18989@torch.brasslantern.com> <20130429094700.6c8db4a9@pwslap01u.europe.root.pri> From: Russell Harmon Date: Mon, 29 Apr 2013 01:51:58 -0700 X-Google-Sender-Auth: eD1rtzF2bGNTMRhn4KrHWb_K9iA Message-ID: Subject: Re: Augmenting a Sticky Emulation Mode To: Peter Stephenson Cc: zsh-users@zsh.org Content-Type: multipart/alternative; boundary=14dae9340f1d934eb904db7c002f --14dae9340f1d934eb904db7c002f Content-Type: text/plain; charset=UTF-8 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 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 > --14dae9340f1d934eb904db7c002f--