about summary refs log tree commit diff
path: root/Functions/Zftp/zfcd_match
diff options
context:
space:
mode:
Diffstat (limited to 'Functions/Zftp/zfcd_match')
-rw-r--r--Functions/Zftp/zfcd_match2
1 files changed, 1 insertions, 1 deletions
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