From e2fad744a42b7e6d640def9afc03dc92641c911d Mon Sep 17 00:00:00 2001 From: Peter Stephenson Date: Tue, 4 Apr 2000 19:34:26 +0000 Subject: Patches 10440 (Chmouel), 10448, 10477 (Clint) --- Functions/Zftp/zfcd_match | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'Functions/Zftp') diff --git a/Functions/Zftp/zfcd_match b/Functions/Zftp/zfcd_match index 02a19af21..b5902cdde 100644 --- a/Functions/Zftp/zfcd_match +++ b/Functions/Zftp/zfcd_match @@ -26,7 +26,7 @@ if [[ $ZFTP_SYSTEM = UNIX* ]]; then # to list, but not a glob. Don't ask me why. # I hate having to rely on awk here. zftp ls -LF $dir >$tmpf - reply=($(awk '/\/$/ { print substr($1, 0, length($1)-1) }' $tmpf)) + reply=($(awk '/\/$/ { print substr($1, 1, length($1)-1) }' $tmpf)) rm -f $tmpf [[ -n $dir && $dir != */ ]] && dir="$dir/" if [[ -n $WIDGET ]]; then -- cgit 1.4.1