bug-readline
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Bug-readline] directory_completion_hook interacts with tilde expans


From: Chet Ramey
Subject: Re: [Bug-readline] directory_completion_hook interacts with tilde expansion
Date: Thu, 18 Mar 2010 08:46:56 -0400
User-agent: Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.5; en-US; rv:1.9.1.8) Gecko/20100227 Thunderbird/3.0.3

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    address@hidden    http://cnswww.cns.cwru.edu/~chet/




reply via email to

[Prev in Thread] Current Thread [Next in Thread]