Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

Re: compdef weirdness with function



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