_expand: Suppress unwanted bash error messages (Alioth: #313497)
parent
8b3f19a82e
commit
ccda61d928
|
@ -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" ) )
|
||||
|
|
Loading…
Reference in New Issue