From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 25235 invoked by alias); 28 Sep 2011 13:26:27 -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: 29808 Received: (qmail 24540 invoked from network); 28 Sep 2011 13:26:25 -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.7 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FROM,RCVD_IN_DNSWL_LOW autolearn=ham version=3.3.1 Received-SPF: pass (ns1.primenet.com.au: SPF record at _spf.google.com designates 209.85.220.171 as permitted sender) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=f7NsKQT8hOmmAsku9C2EjT/vDj9x0neaMUT7fIJ76xo=; b=mPw8C3hFdrsYpT1NwAEMv3mgl8VPSXitxBzlyG7BDluoaxHuvzU4Me6m3HbrJP2cML EHSsHpqqUvwDedHeYXQQl9CBykEJLOUI5WeelWorIF3uu4nempQdqk5eFnRZwRquok9j xTevVarFiceFQ2Vt1VQTsXtPiA20r2tw1756E= MIME-Version: 1.0 In-Reply-To: <1317215664.12840.8.camel@LivandoMobile> References: <1317215664.12840.8.camel@LivandoMobile> Date: Wed, 28 Sep 2011 15:26:19 +0200 Message-ID: Subject: Re: ZSH crashes when using ${path:0:h} From: Mikael Magnusson To: Christian Heinrich Cc: zsh-workers@zsh.org Content-Type: text/plain; charset=UTF-8 On 28 September 2011 15:14, Christian Heinrich wrote: > Hi everybody, > > although I use zsh for about one year by now, my configuration was > mostly cherry-picked from sources all over the internet and I began > reading the documentation actually just this week ;o) > > I came across the parameter expansion today and thought I would give it > a shot by trying the "expansion" ${path:0:h} at the beginning of an > argument. (I.e., nothing before it) > > I am aware that this command might be nonsense but since I'm just > learning, I thought it might give me the first entry in $PATH with > the :h modifier applied. I simply wanted to try this out. > > Unfortunately, zsh crashes. > > I am currently using zsh + screen on Ubuntu 11.04 on my x86_AMD64 > machine. > > % zsh --version > zsh 4.3.11 (x86_64-unknown-linux-gnu) This bug is fixed in .12 http://www.zsh.org/mla/workers/2011/msg00076.html -- Mikael Magnusson