[Bash-completion-devel] Bug#489720: [RFC] Re: bash-completion: Please do not expand leading tildes

David Paleino d.paleino at gmail.com
Sat Sep 6 14:26:06 UTC 2008


Hi Morita,

Morita Sho wrote:
> When bash-completion is not installed, the leading tilde will not be
> expanded on completion.
> 
> [..]
> 
> However, when bash-completion is installed, the leading tilde will be
> expanded on completion because _expand function performs the tilde
> expansion. That is slightly annoying.
> 
> [..]
> 
> IMHO, the tilde expansion in _expand seems needless because compgen
> correctly handles leading tildes.

I agree with you, and have committed the fix (rev1170), but I'm CCing the team
because people might be relying on ~foo being expanded to /home/foo/, and I
don't really know whether this fix might affect other software or not.

However, fix committed. I'll eventually revert it if it causes problems to
other users (i.e. please don't re-file the bug if you see ~foo re-expanded
to /home/foo/ in future versions ;) )

Kindly,
David

-- 
 . ''`.  Debian maintainer | http://wiki.debian.org/DavidPaleino
 : :'  : Linuxer #334216 --|-- http://www.hanskalabs.net/
 `. `'`  GPG: 1392B174 ----|---- http://snipr.com/qa_page
   `-   2BAB C625 4E66 E7B8 450A C3E1 E6AA 9017 1392 B174
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 197 bytes
Desc: not available
Url : http://lists.alioth.debian.org/pipermail/bash-completion-devel/attachments/20080906/1473e233/attachment-0001.pgp 


More information about the Bash-completion-devel mailing list