From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 11568 invoked from network); 13 Mar 2008 20:35:50 -0000 X-Spam-Checker-Version: SpamAssassin 3.2.4 (2008-01-01) on f.primenet.com.au X-Spam-Level: X-Spam-Status: No, score=-2.6 required=5.0 tests=AWL,BAYES_00 autolearn=ham version=3.2.4 Received: from news.dotsrc.org (HELO a.mx.sunsite.dk) (130.225.247.88) by ns1.primenet.com.au with SMTP; 13 Mar 2008 20:35:50 -0000 Received-SPF: none (ns1.primenet.com.au: domain at sunsite.dk does not designate permitted sender hosts) Received: (qmail 60309 invoked from network); 13 Mar 2008 20:35:45 -0000 Received: from sunsite.dk (130.225.247.90) by a.mx.sunsite.dk with SMTP; 13 Mar 2008 20:35:45 -0000 Received: (qmail 9539 invoked by alias); 13 Mar 2008 20:35:42 -0000 Mailing-List: contact zsh-workers-help@sunsite.dk; run by ezmlm Precedence: bulk X-No-Archive: yes X-Seq: 24707 Received: (qmail 9523 invoked from network); 13 Mar 2008 20:35:42 -0000 Received: from bifrost.dotsrc.org (130.225.254.106) by sunsite.dk with SMTP; 13 Mar 2008 20:35:42 -0000 Received: from wx-out-0506.google.com (wx-out-0506.google.com [66.249.82.225]) by bifrost.dotsrc.org (Postfix) with ESMTP id 990DA80307F7 for ; Thu, 13 Mar 2008 21:35:38 +0100 (CET) Received: by wx-out-0506.google.com with SMTP id h27so3671615wxd.3 for ; Thu, 13 Mar 2008 13:35:37 -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:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; bh=m+pUU/hAIvqaiFuS535LvYnCDdQ9LKNEsHstvfOD44Q=; b=T46qZs9cJWdkQ4t0OXoD96PqOxSUEu4ao1lnvzzibx/RzFBZzkxPBvYLKrlmqzPnYT37PSlLb5Z8GymlQioDI8fO1Q9kKbbVwnDrAIpHACNnu/NTpP8qc7cIWhxM2/pSRjFzvkG9Nd8JzUKTfsCu5q8LAkiLEsPhTXRKWLzfWwg= 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=Gz6wFKkRZ/7p0aSERttY5GxzvrahywIHu938I/PqJSqnijPRhMYsoO54ZDffLgl6nso4X/tyvQwyiUg3xForMcN1hpr1GJtQYU48JXb8ablKETPeaxaPFeM4azCCB7beMyxGz67OVxQf1xR9Eh34rf0qd6RmetElLRjG6W338gs= Received: by 10.140.136.6 with SMTP id j6mr6110917rvd.199.1205440536762; Thu, 13 Mar 2008 13:35:36 -0700 (PDT) Received: by 10.141.202.18 with HTTP; Thu, 13 Mar 2008 13:35:36 -0700 (PDT) Message-ID: <237967ef0803131335u6744a78s3387671ad33c32e8@mail.gmail.com> Date: Thu, 13 Mar 2008 21:35:36 +0100 From: "Mikael Magnusson" To: "zsh workers" Subject: Re: zkbd fails: must be run as a function or shell script, not sourced In-Reply-To: <20080313202748.GV30518@fsst.voodoo.lan> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <20080313202748.GV30518@fsst.voodoo.lan> X-Virus-Scanned: ClamAV 0.91.2/6225/Thu Mar 13 15:52:37 2008 on bifrost X-Virus-Status: Clean On 13/03/2008, Frank Terbeck wrote: > Hi workers, > > The zkbd function currently fails to start. In particular, it seems to > be the following test (I don't actually understand how that test works > at all :-): > > [snip] > [[ -o interactive ]] && { > local -i ARGC > (ARGC=0) 2>/dev/null || { > print -u2 ${0}: must be run as a function or shell script, not sourced > return 1 > } > } > [snap] > > Since this worked before, I git-bisected my way through the younger > zsh code history and I was able to find the commit that breaks it for > me. fwiw, with current cvs i get this, which seems to be the intended result: {21:31:03|~}% zsh .zsh/zkbd Enter current terminal type: [rxvt-unicode] {21:31:07|~}% source .zsh/zkbd .zsh/zkbd: must be run as a function or shell script, not sourced {21:31:09|~}% .zsh/zkbd zsh: command not found: .zsh/zkbd {21:31:12|~}% +x .zsh/zkbd {21:31:12|~}% .zsh/zkbd Enter current terminal type: [rxvt-unicode] -- Mikael Magnusson