From 0ce0956a81ddef869d5d3a90b88ab820fa0a96ed Mon Sep 17 00:00:00 2001 From: ianmacd <> Date: Sat, 5 Oct 2002 05:52:37 +0000 Subject: [PATCH] - avoid double machine name bug in scp --- bash_completion | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/bash_completion b/bash_completion index a71bb460..697103ec 100644 --- a/bash_completion +++ b/bash_completion @@ -1,6 +1,6 @@ # bash_completion - some programmable completion functions for bash 2.05b # -# $Id: bash_completion,v 1.421 2002/10/02 03:32:40 ianmacd Exp $ +# $Id: bash_completion,v 1.422 2002/10/05 07:52:37 ianmacd Exp $ # # Copyright (C) Ian Macdonald # @@ -1740,7 +1740,7 @@ _chkconfig() } [ "$have" ] && complete -F _chkconfig chkconfig -# This function orovides simple user@host completion +# This function provides simple user@host completion # _user_at_host() { local cur @@ -1900,7 +1900,7 @@ _scp() # default to home dir of specified user on remote host path=$( ssh -o 'Batchmode yes' $userhost pwd 2>/dev/null) fi - COMPREPLY=( $( compgen -P "$userhost:" \ + COMPREPLY=( $( compgen \ -W "`echo $( ssh -o 'Batchmode yes' $userhost \ compgen -f -- $path 2>/dev/null)`")) return 0