From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 1003 invoked by alias); 3 Jun 2014 20:26:59 -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: 32684 Received: (qmail 14994 invoked from network); 3 Jun 2014 20:26:47 -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 X-Originating-IP: [86.6.157.246] X-Spam: 0 X-Authority: v=2.1 cv=TM7LSjVa c=1 sm=1 tr=0 a=BvYiZ/UW0Fmn8Wufq9dPrg==:117 a=BvYiZ/UW0Fmn8Wufq9dPrg==:17 a=NLZqzBF-AAAA:8 a=uObrxnre4hsA:10 a=kj9zAlcOel0A:10 a=HyQ2mm5JAAAA:8 a=eRaGPutHZhra9SxH68MA:9 a=CjuIK1q_8ugA:10 a=VDw9KV-tx8oA:10 Date: Tue, 3 Jun 2014 21:26:44 +0100 From: Peter Stephenson To: zsh-workers@zsh.org Subject: Re: 'emulate sh -c' and $0 Message-ID: <20140603212644.455c9981@pws-pc.ntlworld.com> In-Reply-To: <538E2CDD.7070106@bbn.com> 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> <538E2CDD.7070106@bbn.com> X-Mailer: Claws Mail 3.8.0 (GTK+ 2.24.7; x86_64-redhat-linux-gnu) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit On Tue, 03 Jun 2014 16:15:25 -0400 Richard Hansen wrote: > Although it would be a behavior change, I think it would be best if both > 'emulate sh' and 'emulate sh -c' set POSIX_ARGZERO by default: I > suspect that someone who runs 'emulate sh' cares more about accurate sh > emulation than compatibility with previous sh emulation behavior. :) Yes, that's the policy --- backward compatibility is for native mode, sh compatibility can be improved without worrying about that. I'm not sure why we missed this one. Most of the POSIX options are on in sh emulations. pws