- _scp(): silence errors from remote path completion
This commit is contained in:
parent
2580ccfb4c
commit
5e5353405d
@ -1,6 +1,6 @@
|
|||||||
# bash_completion - some programmable completion functions for bash 2.05a
|
# bash_completion - some programmable completion functions for bash 2.05a
|
||||||
#
|
#
|
||||||
# $Id: bash_completion,v 1.239 2002/03/31 08:06:52 ianmacd Exp $
|
# $Id: bash_completion,v 1.240 2002/04/01 01:12:50 ianmacd Exp $
|
||||||
#
|
#
|
||||||
# Copyright (C) Ian Macdonald <ian@caliban.org>
|
# Copyright (C) Ian Macdonald <ian@caliban.org>
|
||||||
#
|
#
|
||||||
@ -1376,7 +1376,7 @@ _scp()
|
|||||||
fi
|
fi
|
||||||
COMPREPLY=( $( compgen -P "$userhost:" \
|
COMPREPLY=( $( compgen -P "$userhost:" \
|
||||||
-W "`echo $( ssh -o 'Batchmode yes' $userhost \
|
-W "`echo $( ssh -o 'Batchmode yes' $userhost \
|
||||||
compgen -f -- $path )`" ) )
|
compgen -f -- $path 2>/dev/null)`"))
|
||||||
return 0
|
return 0
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user