diff options
author | Peter Stephenson <pws@users.sourceforge.net> | 2000-04-04 19:34:26 +0000 |
---|---|---|
committer | Peter Stephenson <pws@users.sourceforge.net> | 2000-04-04 19:34:26 +0000 |
commit | e2fad744a42b7e6d640def9afc03dc92641c911d (patch) | |
tree | 985fc75d8e10ca289999d69e813baae29fa55915 /Functions/Zftp/zfcd_match | |
parent | 8b277826ebf259810e185355771f84691412be7d (diff) | |
download | zsh-e2fad744a42b7e6d640def9afc03dc92641c911d.tar.gz zsh-e2fad744a42b7e6d640def9afc03dc92641c911d.tar.xz zsh-e2fad744a42b7e6d640def9afc03dc92641c911d.zip |
Patches 10440 (Chmouel), 10448, 10477 (Clint)
Diffstat (limited to 'Functions/Zftp/zfcd_match')
-rw-r--r-- | Functions/Zftp/zfcd_match | 2 |
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 |