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

Re: custom script Bash completion



On Nov 10,  6:18pm, Chet Ramey wrote:
} 
} In the Bash-4.2 info manual, you find:

Thanks, Chet.  I searched for mentions of the "complete" builtin but
didn't dig far enough into the paragraphs describing what was done
to process a "compspec".

Among other likely deficiencies, it looks like the "complete" emulator
defined by bashcompinit does not support the -E (empty command name) or
-D (default) options (which may very well be intentional, but there's
really no documentation for bashcompinit); and it probably is not
processing the steps in the right order (e.g., commands with -C may be
handled before functions with -F, and wordlist with -W might come after
both where the bash manual says they should come first, etc.).

So this could use an overhaul if anyone feels so inclined.



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