- _scp(): silence errors from remote path completion

This commit is contained in:
ianmacd 2002-03-31 23:12:50 +00:00
parent 2580ccfb4c
commit 5e5353405d

View File

@ -1,6 +1,6 @@
# 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>
#
@ -1376,7 +1376,7 @@ _scp()
fi
COMPREPLY=( $( compgen -P "$userhost:" \
-W "`echo $( ssh -o 'Batchmode yes' $userhost \
compgen -f -- $path )`" ) )
compgen -f -- $path 2>/dev/null)`"))
return 0
fi