[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: programmable completion: completing filenames with default Readline
From: |
Chet Ramey |
Subject: |
Re: programmable completion: completing filenames with default Readline behavior |
Date: |
Tue, 01 Oct 2013 16:59:39 -0400 |
User-agent: |
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
> the
> 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
years ago.
> In future versions of Bash, it would be nice if the default Readline
> completion
> 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.
Chet
--
``The lyf so short, the craft so long to lerne.'' - Chaucer
``Ars longa, vita brevis'' - Hippocrates
Chet Ramey, ITS, CWRU chet@case.edu http://cnswww.cns.cwru.edu/~chet/