_expand: Suppress unwanted bash error messages (Alioth: #313497)
This commit is contained in:
parent
8b3f19a82e
commit
ccda61d928
@ -986,7 +986,7 @@ _expand()
|
|||||||
# a tilde is fed to commands and ending up quoted instead of expanded.
|
# a tilde is fed to commands and ending up quoted instead of expanded.
|
||||||
|
|
||||||
if [[ "$cur" == \~*/* ]]; then
|
if [[ "$cur" == \~*/* ]]; then
|
||||||
eval cur=$cur
|
eval cur=$cur 2>/dev/null
|
||||||
elif [[ "$cur" == \~* ]]; then
|
elif [[ "$cur" == \~* ]]; then
|
||||||
cur=${cur#\~}
|
cur=${cur#\~}
|
||||||
COMPREPLY=( $( compgen -P '~' -u "$cur" ) )
|
COMPREPLY=( $( compgen -P '~' -u "$cur" ) )
|
||||||
|
Loading…
x
Reference in New Issue
Block a user