Revert r1170, see comments in _expand for details.

This commit is contained in:
Ville Skyttä 2009-02-06 23:26:34 +02:00
parent 2595b32439
commit 8bb9539219
2 changed files with 5 additions and 5 deletions

View File

@ -390,11 +390,12 @@ _expand()
# FIXME: Why was this here?
#[ "$cur" != "${cur%\\}" ] && cur="$cur\\"
# expand ~username type directory specifications
# Expand ~username type directory specifications. We want to expand
# ~foo/... to /home/foo/... to avoid problems when $cur starting with
# a tilde is fed to commands and ending up quoted instead of expanded.
if [[ "$cur" == \~*/* ]]; then
# Don't expand ~foo at /home/foo/. (See #489720)
#eval cur=$cur
return
eval cur=$cur
elif [[ "$cur" == \~* ]]; then
cur=${cur#\~}
COMPREPLY=( $( compgen -P '~' -u $cur ) )

1
debian/changelog vendored
View File

@ -20,7 +20,6 @@ bash-completion (200902xx) UNRELEASED; urgency=low
FIXME in source.
* Dump to /dev/null error message from look(1) with no arguments
(Closes: #495142)
* Don't expand ~foo to /home/foo/ (Closes: #489720)
* Set ssh as default for rsync (was rsh) (Closes: #492328)
* Added .oga, .ogv, .ogx to mplayer completion (Closes: #496162)
* Added .epub to unzip|zipinfo completion (Closes: #492476)