From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 25711 invoked by alias); 20 Aug 2011 07:45:22 -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: 29713 Received: (qmail 16388 invoked from network); 20 Aug 2011 07:45:20 -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,DKIM_SIGNED, DKIM_VALID,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.210.41 as permitted sender) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:sender:in-reply-to:references:date :x-google-sender-auth:message-id:subject:from:to:cc:content-type :content-transfer-encoding; bh=vJKmuynt6wFtJNaOvkI9oH5GiA/aXB5Qe78U3LIxZxM=; b=rX6jrwLw4PPjTgrSrV48Wtu/qrjsGdnyk+vXCsEzWOIuhPyEBm2XyHUs1nGlcqq7O0 p/4kJ4YmtZdOUEpcUdwc8vUsrwK1PUhYCUjn1Ny228zbdPWqb+pQAtiRkFxV5Rgh9/fA irqd5O1iAU9GkCIx5dGAl6sclWJkb9wrzB+Zw= MIME-Version: 1.0 Sender: nikolai.weibull@gmail.com In-Reply-To: References: <20110819212323.6df1a054@pws-pc.ntlworld.com> Date: Sat, 20 Aug 2011 09:45:15 +0200 X-Google-Sender-Auth: y1CosmGTKhUu0ugD_B-C_2jauRg Message-ID: Subject: Re: Suggestion for Completion/Unix/Command/_ln From: Nikolai Weibull To: Peter Stephenson Cc: Zsh Workers Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable On Sat, Aug 20, 2011 at 09:38, Nikolai Weibull wrote: > On Fri, Aug 19, 2011 at 22:23, Peter Stephenson > wrote: >> On Fri, 19 Aug 2011 13:05:08 +0200 >> Nikolai Weibull wrote: >>> I have, however, not been able to get _pick_variant to work for >>> zle/files. =C2=A0Can someone please suggest a way to handle it? >> if [[ -n $builtins[ln] ]]; then ... >> >> should be good enough to test if ln is being provided by a builtin >> (possibly not yet loaded). > OK, thanks! =C2=A0I changed it to (( ${+builtins[ln]} )), as I like that > pattern better. > > Here=E2=80=99s an updated version. (I=E2=80=99ve committed it to CVS. I hope that was alright.)