bug-gnu-emacs
[Top][All Lists]
Advanced

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

bug#28064: eshell-cmpl should not auto-complete ~/./


From: Jim Porter
Subject: bug#28064: eshell-cmpl should not auto-complete ~/./
Date: Sun, 12 Mar 2023 00:02:52 -0800

On 8/12/2017 6:44 AM, Yegor Timoshenko wrote:
M-x eshell
Type `cd ~/.` and press TAB.

It will auto-complete to `cd ~/./`. I don't think it's useful.

A much-delayed thanks for reporting this. I looked into this, and it was due to 'eshell-expand-user-reference' calling 'expand-file-name' on the argument. This meant that when you press TAB, the "~/." gets converted into "/home/user" before passing the command to Pcomplete. Then Pcomplete would incorrectly assume you wanted to complete "/home/user", which just becomes "/home/user/".

Attached is a fix. Normally I'd write a regression test for this, but I haven't come up with a good way to do this without messing up the user's real home directory...

Attachment: 0001-Don-t-over-normalize-file-names-starting-with-in-Esh.patch
Description: Text document


reply via email to

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