_expand: Suppress unwanted bash error messages (Alioth: #313497)

master
Igor Murzov 2012-04-18 20:33:11 +04:00
parent 8b3f19a82e
commit ccda61d928
1 changed files with 1 additions and 1 deletions

View File

@ -986,7 +986,7 @@ _expand()
# a tilde is fed to commands and ending up quoted instead of expanded.
if [[ "$cur" == \~*/* ]]; then
eval cur=$cur
eval cur=$cur 2>/dev/null
elif [[ "$cur" == \~* ]]; then
cur=${cur#\~}
COMPREPLY=( $( compgen -P '~' -u "$cur" ) )