On 3/18/10 5:41 AM, Stefan H. Holek wrote:
> I have no objections to the expanded directory name being passed to the
> hook ;-). Thing is, however, that when a directory_completion_hook is
> set (even if it does nothing), the expanded directory name is also
> inserted into the line. I would not expect the latter when I (as a user)
> have set expand-tilde off.
That's up to the application. The calling application has complete freedom
to change the directory name -- there's no guarantee that the original
pathname with the tilde is related to the rewritten directory name, which
readline is going to open and search for matches. You can't guarantee
that adding the original name, complete with tilde, back to the list of
matches will result in valid pathnames.
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/
_______________________________________________
Bug-readline mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/bug-readline