Discussion:
[ast-users] Tab completion chokes on ~/some
Andreas Kusalananda Kähäri
2017-05-28 18:46:10 UTC
Permalink
Version AJM 93u+ 2012-08-01 running on OpenBSD 6.1 (but have also been
observed elsewhere).

Tab completion does not work in Vi mode (only, Emacs mode in not
affected) for completing a subdirectory name or filename in one's home
directory, if tab is pressed after the fourth character of the directory
name:

$ cd ~/loca

Pressing tab at this point starts moving the cursor to the left, over
the entered text, eventually leaving the command line reading

cd /home/

This does not occur if the tab completion is initiated after the third
or fifth entered character.

If ~username is used, then tab completion fails if pressing tab when the
length of the username plus the number entered characters of the name of
the file/directory is four:

ls ~kk/dm


I submitted an issue with this approximate wording to the "att/ksh"
GitHub repository, but I'm not sure if issues there are tracked by
anyone.


Cheers,
Kusalananda

Loading...