From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 20251 invoked from network); 4 Jan 2008 10:35:56 -0000 X-Spam-Checker-Version: SpamAssassin 3.2.3 (2007-08-08) 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.3 Received: from news.dotsrc.org (HELO a.mx.sunsite.dk) (130.225.247.88) by ns1.primenet.com.au with SMTP; 4 Jan 2008 10:35:56 -0000 Received-SPF: none (ns1.primenet.com.au: domain at sunsite.dk does not designate permitted sender hosts) Received: (qmail 30958 invoked from network); 4 Jan 2008 10:35:49 -0000 Received: from sunsite.dk (130.225.247.90) by a.mx.sunsite.dk with SMTP; 4 Jan 2008 10:35:49 -0000 Received: (qmail 19717 invoked by alias); 4 Jan 2008 10:35:44 -0000 Mailing-List: contact zsh-workers-help@sunsite.dk; run by ezmlm Precedence: bulk X-No-Archive: yes X-Seq: 24353 Received: (qmail 19700 invoked from network); 4 Jan 2008 10:35:44 -0000 Received: from bifrost.dotsrc.org (130.225.254.106) by sunsite.dk with SMTP; 4 Jan 2008 10:35:44 -0000 Received: from virusfilter.dotsrc.org (bifrost [127.0.0.1]) by spamfilter.dotsrc.org (Postfix) with ESMTP id 1E51E8058FF2 for ; Fri, 4 Jan 2008 11:35:41 +0100 (CET) Received: from rv-out-0910.google.com (rv-out-0910.google.com [209.85.198.188]) by bifrost.dotsrc.org (Postfix) with ESMTP for ; Fri, 4 Jan 2008 11:35:40 +0100 (CET) Received: by rv-out-0910.google.com with SMTP id b22so4092925rvf.21 for ; Fri, 04 Jan 2008 02:35:39 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; bh=uq4JOB4LWQ5Kdqpi3M/iXe4OxEbvRkwguioPFVA1psU=; b=Fw09o89tF7FcHWRc/IahnirNDivwf3yzoZPGWxMX9pIrNVpC0aF14Td+lFo4GMNX/QqBatmXPDPMGPKjcd43XyyWTJweTmPOAislwQGMaE6D1kAm9sCjywD8i7b0oqLQ7ilnQMc5FlsOCnKzYjJManXBybdeVkGACBdmk8gytUs= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=NklOZs5t+yZNWzm7QMSDag0uSrrLEaqzQwdx9ViRKDzUy6+Q9Cb+vC7xRmngyvTITk+IXUizTBFi6ec2GKIjB+JSn4ffnT4AnUr+iJhFNktAH6zhP+SId2qtVZ50c1iYgaEW50KezUjZeqnymkWDGaSD3iVhHgQrV08pBi4zCUs= Received: by 10.140.82.38 with SMTP id f38mr8726085rvb.30.1199442939035; Fri, 04 Jan 2008 02:35:39 -0800 (PST) Received: by 10.140.127.7 with HTTP; Fri, 4 Jan 2008 02:35:39 -0800 (PST) Message-ID: <237967ef0801040235o5804bb92rd1d8f20edb21f828@mail.gmail.com> Date: Fri, 4 Jan 2008 11:35:39 +0100 From: "Mikael Magnusson" To: zsh-workers Subject: Re: Crash with =~ in script, but not interactively In-Reply-To: <237967ef0801040127k49e92485rf09ce72c47d076c5@mail.gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <237967ef0801040127k49e92485rf09ce72c47d076c5@mail.gmail.com> X-Virus-Scanned: ClamAV using ClamSMTP On 04/01/2008, Mikael Magnusson wrote: > I was going to make a wrapper script that replaces the :43: in gcc > warnings with +43 so i can open in vim easierly, but ran into some > problems. > > #!/bin/zsh > #this makes zsh segfault > if [[ $#@ = 1 ]]; then > if [[ $1 =~ /?[^/]+:[0-9]+:$ ]]; then > echo hello > fi > fi > > If i save that in a file and run 'zsh file' it crashes, but if i run > 'source file' in an open shell it works as expected. Here's a > backtrace with -g3 -O0 Just checked, this happens directly on the commit "23375: Phil Pennock: =~, zsh/regex etc. etc.", so the bug wasn't introduced after that. Likely the bug is somewhere else, but I can't reproduce it with just a = instead of the =~. -- Mikael Magnusson