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 [email protected] http://cnswww.cns.cwru.edu/~chet/