From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 3412 invoked by alias); 29 Apr 2013 05:44:45 -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: 17792 Received: (qmail 10461 invoked from network); 29 Apr 2013 05:44:43 -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.223.175 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=69HPb3lF2Gb3mRjlf9U1VRezdYitgmqBP8MV3vwlCs0=; b=o5njoiK1g0MnohSNmHqWgDnLdU07EyrRLaF+QG0Er1IT0Z4lY6V6AxVL2ReRUQXIse lN8UtaWPjIqvDJY43nF5OsWZTlbW/rjzvbZN2w5Z3xkP2eJzusEMwwIZcqtaItQaRppf K2+1bSdor/unoR0iC6Bht7BPvU2DWa8KUzLukqwkqQ3QPfyMAX1wXdY9OH6QYi2q597m 7bYCpmJLdL92RTn0m/UxKtpjKkQXD3X5cBayXZd7fR6HtL6mQ40StWAK/0vKCg8M0s/g Xn7GD/S/Id86jOUZP0xBod0F7ljnYIjHDynHuPbvgi9nK/apDiKLFVRBoxjxnbpxxt78 eBow== 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=69HPb3lF2Gb3mRjlf9U1VRezdYitgmqBP8MV3vwlCs0=; b=pDofi8EdMRPOqRoL64BuNlApm5JUdn5fbwlLuIpq+u6AXKwKCE2ZcZqa0/4GGfyktW KhTRPAr6Uj284fYKnMdiRWsk4hVmqLjlCoz5D1HrXiN4VkmAAXnwvdVif7NFDn57MfTI 4K89tBq9o++tbeMjZeNqZEnInEd4G15L6ysho= X-Received: by 10.42.64.135 with SMTP id g7mr28050109ici.37.1367214277618; Sun, 28 Apr 2013 22:44:37 -0700 (PDT) MIME-Version: 1.0 Sender: eatnumber1@gmail.com In-Reply-To: References: <130426180127.ZM18989@torch.brasslantern.com> From: Russell Harmon Date: Sun, 28 Apr 2013 22:44:17 -0700 X-Google-Sender-Auth: 4WCwo-wT3odxB18KGPJs6IYEPfU Message-ID: Subject: Re: Augmenting a Sticky Emulation Mode To: Russell Harmon Cc: Bart Schaefer , zsh-users@zsh.org Content-Type: multipart/alternative; boundary=90e6ba5bbaa35972c804db7961ed --90e6ba5bbaa35972c804db7961ed Content-Type: text/plain; charset=UTF-8 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 -- Russell Harmon On Sun, Apr 28, 2013 at 10:25 PM, Russell Harmon wrote: > Works great, thanks. > > I notice however that the following crashes zsh: emulate -R sh -o > braceexpand -c 'foo() {; setopt; }' > (specifically, setting braceexpand this way causes the crash) > > -- > Russell Harmon > > > On Fri, Apr 26, 2013 at 6:01 PM, Bart Schaefer wrote: > >> On Apr 26, 2:40pm, Russell Harmon wrote: >> } >> } Is it possible to augment a sticky emulation mode with additional >> options? >> >> Yes, but it requires version 5.0.x. >> >> } Specifically, I'd like the something like the following to return zero: >> } emulate -R sh -c 'setopt kshglob; function foo() {; setopt; }'; foo | >> grep kshglob >> >> emulate -R sh -o kshglob -c 'foo() {; setopt; }'; foo | grep kshglob >> > > --90e6ba5bbaa35972c804db7961ed--