Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: compdef weirdness with function
- X-seq: zsh-users 9927
- From: Ian Langworth <ian.langworth@xxxxxxxxx>
- To: zsh-users@xxxxxxxxxx
- Subject: Re: compdef weirdness with function
- Date: Tue, 14 Feb 2006 19:09:56 -0500
- Domainkey-signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=UMQEqIiRXspcW9dJpfxph/wk7FwWuoV5npo4Mfn2ct59KBQrCNGmEtAGBciOW8Q3D2yuWfROANqKlzetIo0HbgyGOgnlRIK43us/oDt2UVlkaWBw00glMMkv8koC3d8hnI8vCFTtEEqD6yjJEroEb1JdUhutNEx7pu9H94PQkCE=
- In-reply-to: <1060211204556.ZM6312@xxxxxxxxxxxxxxxxxxxxxxx>
- Mailing-list: contact zsh-users-help@xxxxxxxxxx; run by ezmlm
- References: <b6c719b90602111157s31ac848ep4980f9d6a788ba1@xxxxxxxxxxxxxx> <1060211204556.ZM6312@xxxxxxxxxxxxxxxxxxxxxxx>
On 2/11/06, Bart Schaefer <schaefer@xxxxxxxxxxxxxxxx> wrote:
> On Feb 11, 2:57pm, Ian Langworth wrote:
> }
> } If I add a completion definition for some arbitrary, undefined symbol,
> }
> } % compdef _perl_modules foo
>
> The problem is with _perl_modules. It expects all commands for which it
> complete to be synonyms for perl; it's attempting to run
>
> foo -e 'print @INC'
Weird and gross. Thanks :)
I've added an if [ "$1" = "-e" ] to my function as a workaround.
--
Ian Langworth
Messages sorted by:
Reverse Date,
Date,
Thread,
Author