[Top][All Lists]
[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 10:41:58 +0100 |
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.
The relevant rl_filename_completion_function snippet is:
if (rl_directory_completion_hook &&
(*rl_directory_completion_hook) (&dirname))
{
free (users_dirname);
users_dirname = savestring (dirname);
}
Thanks,
Stefan
On 17.03.2010, at 21:57, Chet Ramey wrote:
Yes, exactly.
Readline performs tilde expansion before passing filenames to hook
functions
because the calling application may not be capable of doing so.
The `expand-tilde' setting is for users to control, not for
application
hooks. No, there's no good way for a calling application to
indicate that
it wants to do its own tilde processing.
Chet
--
Stefan H. Holek
address@hidden
- [Bug-readline] directory_completion_hook interacts with tilde expansion, Stefan H. Holek, 2010/03/17
- Re: [Bug-readline] directory_completion_hook interacts with tilde expansion, Chet Ramey, 2010/03/17
- Re: [Bug-readline] directory_completion_hook interacts with tilde expansion, Stefan H. Holek, 2010/03/18
- Re: [Bug-readline] directory_completion_hook interacts with tilde expansion, Chet Ramey, 2010/03/17
- Re: [Bug-readline] directory_completion_hook interacts with tilde expansion,
Stefan H. Holek <=
- Re: [Bug-readline] directory_completion_hook interacts with tilde expansion, Chet Ramey, 2010/03/18
- Re: [Bug-readline] directory_completion_hook interacts with tilde expansion, Stefan H. Holek, 2010/03/19
- Re: [Bug-readline] directory_completion_hook interacts with tilde expansion, Stefan H. Holek ยท Jarn, 2010/03/26
- Re: [Bug-readline] directory_completion_hook interacts with tilde expansion, Chet Ramey, 2010/03/25