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

Re: compdef weirdness with function



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'

to find the include-path for the modules to complete.  When foo does not
exist it falls back to

	perl -e 'print @INC'

but when foo does exist and does not behave like perl, it simply fails.



Messages sorted by: Reverse Date, Date, Thread, Author