help-bash
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Help-bash] Is there a convenient function that return what is print


From: Pierre Gaston
Subject: Re: [Help-bash] Is there a convenient function that return what is printed after typing <TAB>?
Date: Wed, 7 Mar 2012 16:40:57 +0200

On Wed, Mar 7, 2012 at 4:31 PM, Peng Yu <address@hidden> wrote:
> Hi,
>
> <TAB> can print a number of candidate commands. Is there a command
> that can take the partial command and print all the candidates (so
> that the output can feed to another program)? (This is not a difficult
> problem to program from scratch if I just want to get the candidates
> from PATH, but it is not obvious to how to get all the candidates set
> by custom bash-completion.)
>
> --
> Regards,
> Peng
>
check the documentation of "compgen" in the bash manual



reply via email to

[Prev in Thread] Current Thread [Next in Thread]