Re: complete NAME seems to diasable completion for NAME in the case of git

2023-12-26 Thread Chet Ramey
On 12/21/23 5:26 PM, Martin D Kealey wrote: The problem is, there's a documentation error. "help complete" says "if no options are supplied…" when it should say something more like "if the -p option is given, or if no arguments are given…" This is the right answer. -- ``The lyf so short, th

Re: complete NAME seems to diasable completion for NAME in the case of git

2023-12-21 Thread Martin D Kealey
On Fri, 22 Dec 2023, 05:55 Andreas Schwab, wrote: > If you want to print existing completions, use > complete -p [NAME...]. > The problem is, there's a documentation error. "help complete" says "if no options are supplied…" when it should say something more like "if the -p option is given, or i

Re: complete NAME seems to diasable completion for NAME in the case of git

2023-12-21 Thread Andreas Schwab
On Dez 21 2023, Britton Kerin wrote: > But if I do `complete git' at a new shell That overwrites the completion spec for git (with the empty set, ie. no completions at all). If you want to print existing completions, use complete -p [NAME...]. -- Andreas Schwab, sch...@linux-m68k.org GPG Key f

complete NAME seems to diasable completion for NAME in the case of git

2023-12-21 Thread Britton Kerin
help complete shows: $ help complete 5001 complete: complete [-abcdefgjksuv] [-pr] [-DEI] [-o option] [-A action] [-G globpat] [-W wordlist] [-F function] [-C command] [-X filterpat] [-P prefix] [-S suffix] [name ...] Specify how arguments are to be completed by Readline.