[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: programmable completion: completing filenames with default Readline
Re: programmable completion: completing filenames with default Readline behavior
Tue, 01 Oct 2013 16:59:39 -0400
Mozilla/5.0 (Macintosh; Intel Mac OS X 10.8; rv:24.0) Gecko/20100101 Thunderbird/24.0
On 10/1/13 4:55 PM, Jeremy Lin wrote:
> Thanks, I actually ended up with the same solution (for Bash 4.0 and above,
> where 'compopt' is available, anyway). I just set '+o default' at the top of
> completion function and then set '-o default' as needed. Unfortunately, for
> earlier versions of Bash, the workaround I mentioned previously seems to be
> about as good as it gets.
Earlier versions of bash are pretty old; bash-4.0 came out almost five
> In future versions of Bash, it would be nice if the default Readline
> could be invoked explicitly, rather than requiring this 'compopt' workaround.
What syntax would you suggest for doing that? It may require inventing a
new way for completion functions to interact with their calling environment.
``The lyf so short, the craft so long to lerne.'' - Chaucer
``Ars longa, vita brevis'' - Hippocrates
Chet Ramey, ITS, CWRU address@hidden http://cnswww.cns.cwru.edu/~chet/