bug-readline
[Top][All Lists]
Advanced

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

Re: Bug in rl_filename_completion_function (with patch!)


From: Stefan H. Holek
Subject: Re: Bug in rl_filename_completion_function (with patch!)
Date: Thu, 27 Oct 2022 21:52:03 +0200

\o/

Thank you


On 26. Oct 2022, at 21:12, Chet Ramey <chet.ramey@case.edu> wrote:

On 10/25/22 3:51 AM, Stefan H. Holek wrote:
Hi All,
There is an issue that has been bothering me for quite some time now, and that
I finally got to the bottom of. It concerns the dirname passed to opendir in
rl_filename_completion_function (complete.c).
If the dirname requires tilde expansion it is expanded, and if it requires
dequoting it is dequoted. However, if a dirname requires BOTH tilde expansion
AND dequoting (e.g.: ~stefan/funny\ dir/) only the former is performed and
filename completion fails as a result.

This can be handled by rl_directory_rewrite_hook or
rl_directory_completion_hook -- that's why it works in bash -- but I agree
with your change if the calling application doesn't supply either.


-- 
Stefan H. Holek


reply via email to

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