bug-bash
[Top][All Lists]
Advanced

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

Re: Configurable completion and complete -P (prefix)


From: Chet Ramey
Subject: Re: Configurable completion and complete -P (prefix)
Date: Tue, 21 Nov 2000 10:14:56 -0500

> I just tried read about the complete command in the bash-manpage and tried
> 
>   complete -A signal -P '-' kill
> 
> hoping that I could do:
> 
>   kill -SIG<tab>
> 
> However, bash currently uses the prefix only if I do
> 
>   kill SIG<tab>
> 
> ending up in
> 
>   kill -SIG<tab>
> 
> which in turn gives me no completions. :-( Thinking about this, is the -P
> prefix thingy useful like this in other cases? I can't imagine one right now?
> Never mind if this behaviour is intended, I am just curious if I can use
> it like that in the future. ;-)

Any prefix specified with -P is added to each member of the list of possible
completions after that list is generated.

-- 
``The lyf so short, the craft so long to lerne.'' - Chaucer
( ``Discere est Dolere'' -- chet)

Chet Ramey, CWRU    chet@po.CWRU.Edu    http://cnswww.cns.cwru.edu/~chet/



reply via email to

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