From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 5942 invoked by alias); 11 Nov 2013 02:12:48 -0000 Mailing-List: contact zsh-users-help@zsh.org; run by ezmlm Precedence: bulk X-No-Archive: yes List-Id: Zsh Users List List-Post: List-Help: X-Seq: 18140 Received: (qmail 6210 invoked from network); 11 Nov 2013 02:12:42 -0000 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on f.primenet.com.au X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_NONE autolearn=ham version=3.3.2 From: Bart Schaefer Message-id: <131110181227.ZM21779@torch.brasslantern.com> Date: Sun, 10 Nov 2013 18:12:27 -0800 In-reply-to: <52801447.8010609@case.edu> Comments: In reply to Chet Ramey "Re: custom script Bash completion" (Nov 10, 6:18pm) References: <131110102458.ZM21475@torch.brasslantern.com> <52801447.8010609@case.edu> X-Mailer: OpenZMail Classic (0.9.2 24April2005) To: zsh-users@zsh.org Subject: Re: custom script Bash completion MIME-version: 1.0 Content-type: text/plain; charset=us-ascii 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.