No subject


Mon Mar 29 23:06:26 UTC 2010


> Since the most recent upload in sid, bash-completion does no longer to
> ~username completion (to homedirectories).

Simple test case: ls ~<TAB>

Looks like this was broken in commit c9c98da36edeb9305e24e7ea2d8ccf8b0934ce70. Freddy, it was committed by you, could you have a look?

----------------------------------------------------------------------

>Comment By: Ville Skyttä  (scop-guest)
Date: 2010-07-01 20:19

Message:
The fix does not seem quite complete, it causes a test suite failure (ls.exp) for me with bash 4.1.7.  My dbg.log for it is attached.

$ ls ~<TAB>
~abrt/          ~avahi-autoipd  ~ftp            ~halt/          ~mysql/         ~ntp/           ~root/          ~saslauth       ~smolt/         ~usbmuxd/       
~adm            ~bin/           ~games/         ~lp/            ~nfsnobody/     ~openvpn/       ~rpc/           ~scop/          ~sshd/          ~uucp           
~apache/        ~daemon/        ~gopher         ~mail/          ~nobody/        ~operator/      ~rpcuser/       ~shutdown/      ~sync/          ~vcsa/          
~avahi/         ~dbus/          ~haldaemon/     ~mailnull       ~nscd/          ~pulse          ~rtkit/         ~smmsp          ~tcpdump/       

Notice how the ~adm, ~avahi-autoipd, ~ftp, ~gopher, ~mailnull, ~pulse, ~saslauth, ~smmsp, and ~uucp entries lack the trailing slash.  And they actually complete to those strings instead of the dirs. On a brief look it seems that this happens for users whose home dirs don't exist. Not sure if there's anything that can be sanely done about that, but IMO the test suite shouldn't fail.

----------------------------------------------------------------------

Comment By: Freddy Vulto (fvu-guest)
Date: 2010-07-01 00:29

Message:
Fixed in commit ccbf141: Fix tilde (~) completion with _filedir


----------------------------------------------------------------------

You can respond by visiting: 
https://alioth.debian.org/tracker/?func=detail&atid=413095&aid=312613&group_id=100114



More information about the Bash-completion-devel mailing list