On 9/5/11 4:40 AM, Roger wrote: >> The option works, as far as I can see. >> "ls $HOM" completes to "ls $HOME " instead of "ls $HOME/", though.
This is not going to work until I do something else. Readline decides whether or not to append a slash to a directory name, and it doesn't know that $HOME is a directory name. This has been the case for as long as readline has existed. > > Weird. > > On Gentoo here, "echo $HO" does complete to "echo $HOME", but "ls $HO" > fails to complete here. There's probably nothing in the `ls' compspec to tell the programmable completion code to attempt variable completion. You need a `-o bashdefault' for that. Chet -- ``The lyf so short, the craft so long to lerne.'' - Chaucer ``Ars longa, vita brevis'' - Hippocrates Chet Ramey, ITS, CWRU c...@case.edu http://cnswww.cns.cwru.edu/~chet/