Revert r1170, see comments in _expand for details.
This commit is contained in:
parent
2595b32439
commit
8bb9539219
@ -390,11 +390,12 @@ _expand()
|
|||||||
# FIXME: Why was this here?
|
# FIXME: Why was this here?
|
||||||
#[ "$cur" != "${cur%\\}" ] && cur="$cur\\"
|
#[ "$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
|
if [[ "$cur" == \~*/* ]]; then
|
||||||
# Don't expand ~foo at /home/foo/. (See #489720)
|
eval cur=$cur
|
||||||
#eval cur=$cur
|
|
||||||
return
|
|
||||||
elif [[ "$cur" == \~* ]]; then
|
elif [[ "$cur" == \~* ]]; then
|
||||||
cur=${cur#\~}
|
cur=${cur#\~}
|
||||||
COMPREPLY=( $( compgen -P '~' -u $cur ) )
|
COMPREPLY=( $( compgen -P '~' -u $cur ) )
|
||||||
|
1
debian/changelog
vendored
1
debian/changelog
vendored
@ -20,7 +20,6 @@ bash-completion (200902xx) UNRELEASED; urgency=low
|
|||||||
FIXME in source.
|
FIXME in source.
|
||||||
* Dump to /dev/null error message from look(1) with no arguments
|
* Dump to /dev/null error message from look(1) with no arguments
|
||||||
(Closes: #495142)
|
(Closes: #495142)
|
||||||
* Don't expand ~foo to /home/foo/ (Closes: #489720)
|
|
||||||
* Set ssh as default for rsync (was rsh) (Closes: #492328)
|
* Set ssh as default for rsync (was rsh) (Closes: #492328)
|
||||||
* Added .oga, .ogv, .ogx to mplayer completion (Closes: #496162)
|
* Added .oga, .ogv, .ogx to mplayer completion (Closes: #496162)
|
||||||
* Added .epub to unzip|zipinfo completion (Closes: #492476)
|
* Added .epub to unzip|zipinfo completion (Closes: #492476)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user