From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 20177 invoked by alias); 8 Jan 2011 21:53:05 -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: 28599 Received: (qmail 19826 invoked from network); 8 Jan 2011 21:52:52 -0000 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) 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.1 Received-SPF: pass (ns1.primenet.com.au: SPF record at ntlworld.com designates 81.103.221.48 as permitted sender) Date: Sat, 8 Jan 2011 21:52:39 +0000 From: Peter Stephenson To: zsh-workers@zsh.org Subject: Re: exec -a and parameter expansion Message-ID: <20110108215239.059062c3@pws-pc.ntlworld.com> In-Reply-To: <110107181708.ZM628@torch.brasslantern.com> References: <8739p4wekt.fsf@gmail.com> <20110107225616.GA99800@redoubt.spodhuis.org> <110107181708.ZM628@torch.brasslantern.com> X-Mailer: Claws Mail 3.7.8 (GTK+ 2.22.0; x86_64-redhat-linux-gnu) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Cloudmark-Analysis: v=1.1 cv=R50lirqlHffDPPkwUlkuVa99MrvKdVWo//yz83qex8g= c=1 sm=0 a=vDwptv0gWgwA:10 a=kj9zAlcOel0A:10 a=q2GGsy2AAAAA:8 a=NLZqzBF-AAAA:8 a=F2ijydAKmnaL3D9ttosA:9 a=N8XzJ8XeTWC_X7AkBDQZuKjx6wYA:4 a=CjuIK1q_8ugA:10 a=I6wTmPyJxzYA:10 a=_dQi-Dcv4p4A:10 a=HpAAvcLHHh0Zw7uRqdWCyQ==:117 On Fri, 07 Jan 2011 18:17:06 -0800 Bart Schaefer wrote: > So either there are some missing test cases for other things that > this would cause to break, or we should rearrange execcmd() so that > "typeset" is the only special-cased builtin ahead of prefork(). I could be convinced the latter is correct. Apart from KSH_TYPESET, nothing stands out in my mind as needing special behaviour during the expansion phase. A careful search of the manual might be warranted. There was some discussion of the KSH_TYPESET behaviour on the Austin group list; I can't remember the exact upshot, but it's possible it makes the proposed change a requirement. -- Peter Stephenson Web page now at http://homepage.ntlworld.com/p.w.stephenson/