From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 8187 invoked from network); 30 Jun 2009 22:06:49 -0000 X-Spam-Checker-Version: SpamAssassin 3.2.5 (2008-06-10) on f.primenet.com.au X-Spam-Level: X-Spam-Status: No, score=-2.6 required=5.0 tests=BAYES_00 autolearn=ham version=3.2.5 Received: from new-brage.dotsrc.org (HELO a.mx.sunsite.dk) (130.225.254.104) by ns1.primenet.com.au with SMTP; 30 Jun 2009 22:06:49 -0000 Received-SPF: none (ns1.primenet.com.au: domain at sunsite.dk does not designate permitted sender hosts) Received: (qmail 25617 invoked from network); 30 Jun 2009 22:06:35 -0000 Received: from sunsite.dk (130.225.247.90) by a.mx.sunsite.dk with SMTP; 30 Jun 2009 22:06:35 -0000 Received: (qmail 4623 invoked by alias); 30 Jun 2009 22:06:21 -0000 Mailing-List: contact zsh-workers-help@sunsite.dk; run by ezmlm Precedence: bulk X-No-Archive: yes X-Seq: 27077 Received: (qmail 4606 invoked from network); 30 Jun 2009 22:06:21 -0000 Received: from bifrost.dotsrc.org (130.225.254.106) by sunsite.dk with SMTP; 30 Jun 2009 22:06:21 -0000 Received: from wf-out-1314.google.com (wf-out-1314.google.com [209.85.200.169]) by bifrost.dotsrc.org (Postfix) with ESMTP id EB5E580307FA for ; Wed, 1 Jul 2009 00:06:17 +0200 (CEST) Received: by wf-out-1314.google.com with SMTP id 25so183582wfa.3 for ; Tue, 30 Jun 2009 15:06:16 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from :user-agent:mime-version:to:subject:content-type :content-transfer-encoding; bh=QN0UfbeG2d1h5N1lE+h8mg8b7/COWnzp8kBfhVkRj9M=; b=j9JMFgWZEG2+YwrSQJ/xHB/1bl3QO4NPaaB8Kn4vPi19MELSYS9YoVqlzHs1pYeLuV 5NUoLwVSb5qAwhISCCqJqpq9npR09pClJ5wJgu4z6tlGqjt1JAdhPIbSMFlMDhDQpCvi CR+iFntSPZS7v2HYILNx3RxzIt1Zq0ofYoxLs= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:user-agent:mime-version:to:subject :content-type:content-transfer-encoding; b=tess/4QY5L7yuFhs0LxkbLKicSmgiZ3/Jc6eI7G3I/Nj59TMVguTj7+ZVqEoGF52Pk 4NfUaxebBKG8uHuVKfpaTd7v7doIunNj6VSnB5hmzBhF+oAPgf+oT8IL8S/vNE3adtom rY4PU3dAXwC8EYU+IswGLyW/EXbmWZafl6USE= Received: by 10.142.80.3 with SMTP id d3mr706652wfb.13.1246399576422; Tue, 30 Jun 2009 15:06:16 -0700 (PDT) Received: from ?192.168.1.122? (118x237x72x138.ap118.gyao.ne.jp [118.237.72.138]) by mx.google.com with ESMTPS id 9sm1752089wfc.36.2009.06.30.15.06.14 (version=TLSv1/SSLv3 cipher=RC4-MD5); Tue, 30 Jun 2009 15:06:15 -0700 (PDT) Message-ID: <4A4A8C51.3080106@gmail.com> Date: Wed, 01 Jul 2009 07:06:09 +0900 From: Takahiro SUZUKI User-Agent: Thunderbird 2.0.0.22 (Windows/20090605) MIME-Version: 1.0 To: zsh-workers@sunsite.dk Subject: Bug in built-in 'test' under cont $CONTEXT Content-Type: text/plain; charset=ISO-2022-JP Content-Transfer-Encoding: 7bit X-Virus-Scanned: ClamAV 0.94.2/9527/Tue Jun 30 20:52:00 2009 on bifrost X-Virus-Status: Clean Hi all, I found a bug in builtin test command under $CONTEXT=="cont". Using builtin test command via zle widget when zsh is pending for "for", the shell fails with segmentation fault. This does not occur when using /usr/bin/test instead, so I guess it is a problem of zsh. REPRO: % zsh -f myhost% source zshrc_segv myhost% for i in; [test2 called] for> do [test2 called] for> echo [test2 called] for> done [test2 called] myhost% for i in; [test1 called] for> do [test1 called] for> echo [test1 called] zsh: segmentation fault zsh -f % cat zshrc_segv function test1 { # calling in $CONTEXT=cont will crash zsh echo -n ' [test1 called]' test -n "" } function test2 { # but this won't echo -n ' [test2 called]' /usr/bin/test -n "" } zle -N test1 zle -N test2 bindkey '^T' test1 bindkey '^[t' test2 VERSION: (ubuntu server 8.04 x86) zsh 4.3.4 (i686-pc-linux-gnu) -- Takahiro Suzuki