diff options
| author | Peter Stephenson <pws@users.sourceforge.net> | 2004-08-06 14:10:30 +0000 |
|---|---|---|
| committer | Peter Stephenson <pws@users.sourceforge.net> | 2004-08-06 14:10:30 +0000 |
| commit | de79a249999ce970c3b4bc3097b1d6a0695307cb (patch) | |
| tree | aab6ae8f564dde986a7be736e6eea72399d5669f | |
| parent | unposted: zsh-4.2.1-test-A (diff) | |
| download | zsh-de79a249999ce970c3b4bc3097b1d6a0695307cb.tar zsh-de79a249999ce970c3b4bc3097b1d6a0695307cb.tar.gz zsh-de79a249999ce970c3b4bc3097b1d6a0695307cb.tar.bz2 zsh-de79a249999ce970c3b4bc3097b1d6a0695307cb.tar.lz zsh-de79a249999ce970c3b4bc3097b1d6a0695307cb.tar.xz zsh-de79a249999ce970c3b4bc3097b1d6a0695307cb.tar.zst zsh-de79a249999ce970c3b4bc3097b1d6a0695307cb.zip | |
20232 with typo corrected: remove zftp directory listing on zfcd
| -rw-r--r-- | ChangeLog | 3 | ||||
| -rw-r--r-- | Functions/Zftp/zfcd | 7 |
2 files changed, 8 insertions, 2 deletions
@@ -1,5 +1,8 @@ 2004-08-06 Peter Stephenson <pws@csr.com> + * 20232 with typo corrected: Functions/Zftp/zfcd: remove + cached directory listing when changing directory. + * unposted: Config/version.mk: version 4.2.1-test-A. 2004-08-01 Clint Adams <clint@zsh.org> 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] # } |
