From de79a249999ce970c3b4bc3097b1d6a0695307cb Mon Sep 17 00:00:00 2001 From: Peter Stephenson Date: Fri, 6 Aug 2004 14:10:30 +0000 Subject: 20232 with typo corrected: remove zftp directory listing on zfcd --- Functions/Zftp/zfcd | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'Functions/Zftp') diff --git a/Functions/Zftp/zfcd b/Functions/Zftp/zfcd index 05b7dc998..381d83ee7 100644 --- a/Functions/Zftp/zfcd +++ b/Functions/Zftp/zfcd @@ -48,8 +48,11 @@ fi # if we want to keep it. local lastdir=$ZFTP_PWD -zftp cd "$@" && [[ $lastdir != $ZFTP_PWD ]] && -zfconfig[lastdir_$ZFTP_SESSION]=$lastdir +if zftp cd "$@" && [[ $lastdir != $ZFTP_PWD ]]; then + # Invalidate current directory listing. + rm -f $zfconfig[curdir_$ZFTP_SESSION] + zfconfig[lastdir_$ZFTP_SESSION]=$lastdir +fi print $zfconfig[lastloc_$ZFTP_SESSION] # } -- cgit 1.4.1