From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 24384 invoked by alias); 27 Apr 2013 01:02:06 -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: 17790 Received: (qmail 20202 invoked from network); 27 Apr 2013 01:01:55 -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=-1.9 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_NONE autolearn=ham version=3.3.2 Received-SPF: none (ns1.primenet.com.au: domain at closedmail.com does not designate permitted sender hosts) From: Bart Schaefer Message-id: <130426180127.ZM18989@torch.brasslantern.com> Date: Fri, 26 Apr 2013 18:01:27 -0700 In-reply-to: Comments: In reply to Russell Harmon "Augmenting a Sticky Emulation Mode" (Apr 26, 2:40pm) References: X-Mailer: OpenZMail Classic (0.9.2 24April2005) To: zsh-users@zsh.org Subject: Re: Augmenting a Sticky Emulation Mode MIME-version: 1.0 Content-type: text/plain; charset=us-ascii 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