From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 4645 invoked by alias); 14 Jul 2010 10:39:10 -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: 28076 Received: (qmail 12056 invoked from network); 14 Jul 2010 10:39:08 -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=-2.6 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_LOW, SPF_HELO_PASS autolearn=ham version=3.3.1 Received-SPF: none (ns1.primenet.com.au: domain at csr.com does not designate permitted sender hosts) Date: Wed, 14 Jul 2010 11:33:02 +0100 From: Peter Stephenson To: "Zsh Hackers' List" Subject: Re: zsh portable script Message-ID: <20100714113302.48286c05@csr.com> In-Reply-To: References: <1007130241570.5546@smasher> <20100712170648.706cb975@csr.com> <20100713210106.6411aba8@pws-pc> Organization: Cambridge Silicon Radio X-Mailer: Claws Mail 3.7.6 (GTK+ 2.18.9; i686-redhat-linux-gnu) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-OriginalArrivalTime: 14 Jul 2010 10:33:02.0246 (UTC) FILETIME=[EFC04C60:01CB233F] X-Scanned-By: MailControl A_09_40_00 (www.mailcontrol.com) on 10.68.0.133 On Tue, 13 Jul 2010 17:08:42 -0400 (EDT) "Benjamin R. Haskell" wrote: > > % cat execme > > #!zsh -f > > print I am running under $ZSH_VERSION > > % PATH=/bin ./execme > > I am running under 4.3.10 > > % PATH=/usr/local/bin ./execme > > I am running under 4.3.10-dev-1 > > I don't quite understand... what does this improve? Doesn't the > script already have to be running under Zsh for this to have any > effect? Yes, the script has to be started from an instance of zsh, that's exactly why this has a limited effect. -- Peter Stephenson Software Engineer Tel: +44 (0)1223 692070 Cambridge Silicon Radio Limited Churchill House, Cambridge Business Park, Cowley Road, Cambridge, CB4 0WZ, UK Member of the CSR plc group of companies. CSR plc registered in England and Wales, registered number 4187346, registered office Churchill House, Cambridge Business Park, Cowley Road, Cambridge, CB4 0WZ, United Kingdom