From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 12957 invoked by alias); 31 May 2014 23:47:45 -0000 Mailing-List: contact zsh-workers-help@zsh.org; run by ezmlm Precedence: bulk X-No-Archive: yes List-Id: Zsh Workers List List-Post: List-Help: X-Seq: 32642 Received: (qmail 6604 invoked from network); 31 May 2014 23:47: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=-1.9 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_NONE autolearn=ham version=3.3.2 From: Bart Schaefer Message-id: <140531164743.ZM1096@torch.brasslantern.com> Date: Sat, 31 May 2014 16:47:43 -0700 In-reply-to: <140530221301.ZM31798@torch.brasslantern.com> Comments: In reply to Bart Schaefer "Re: 'emulate sh -c' and $0" (May 30, 10:13pm) References: <5387BD0D.8090202@bbn.com> <140529204533.ZM5362@torch.brasslantern.com> <5388461D.8060203@bbn.com> <140530100050.ZM18382@torch.brasslantern.com> <5388F4C3.6070801@bbn.com> <140530221301.ZM31798@torch.brasslantern.com> X-Mailer: OpenZMail Classic (0.9.2 24April2005) To: zsh-workers@zsh.org Subject: Re: 'emulate sh -c' and $0 MIME-version: 1.0 Content-type: text/plain; charset=us-ascii On May 30, 10:13pm, Bart Schaefer wrote: } Subject: Re: 'emulate sh -c' and $0 } } emulate sh } } changes only the options, but } } emulate sh -c 'some command' } } changes both options and $0 in the scope of 'some command'. } [...] } } It seems to me that the ideal situation would be that } } emulate sh } } works exactly as it does now ("With SINGLE ARGUMENT set up zsh options" } says the doc, emphasis mine) but that } } emulate sh -c 'some command' } } alters the behavior of $0 as well. Wow, I thought I'd deleted that top part before I wrote the later part. That's what I get for rushing off to a concert in the middle of composing an email message, I guess.