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: Stefan H. Holek
Subject: Re: [Bug-readline] directory_completion_hook interacts with tilde expansion
Date: Thu, 18 Mar 2010 13:50:24 +0100

Ok :-)

On 18.03.2010, at 13:46, Chet Ramey wrote:

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.


--
Stefan H. Holek
address@hidden









reply via email to

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