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

Re: Using the same completion function for various commands



On Dec 6,  4:21pm, Peter Stephenson wrote:
}
} Is the following change to _pick_variant right?  Why we would ever
} prefer $words[1] to $service, when this seems to be what $service is
} for?

My recollection is that $words[1] is always a command, whereas $service
may just be a placeholder name.  However, I can't provide an example
where this would introduce a problem for _pick_variant in particular.



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