mirror of
git://git.code.sf.net/p/zsh/code
synced 2025-10-28 17:10:59 +01:00
20232 with typo corrected: remove zftp directory listing on zfcd
This commit is contained in:
parent
2a2ddb36a4
commit
de79a24999
2 changed files with 8 additions and 2 deletions
|
|
@ -1,5 +1,8 @@
|
||||||
2004-08-06 Peter Stephenson <pws@csr.com>
|
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.
|
* unposted: Config/version.mk: version 4.2.1-test-A.
|
||||||
|
|
||||||
2004-08-01 Clint Adams <clint@zsh.org>
|
2004-08-01 Clint Adams <clint@zsh.org>
|
||||||
|
|
|
||||||
|
|
@ -48,8 +48,11 @@ fi
|
||||||
# if we want to keep it.
|
# if we want to keep it.
|
||||||
local lastdir=$ZFTP_PWD
|
local lastdir=$ZFTP_PWD
|
||||||
|
|
||||||
zftp cd "$@" && [[ $lastdir != $ZFTP_PWD ]] &&
|
if zftp cd "$@" && [[ $lastdir != $ZFTP_PWD ]]; then
|
||||||
zfconfig[lastdir_$ZFTP_SESSION]=$lastdir
|
# Invalidate current directory listing.
|
||||||
|
rm -f $zfconfig[curdir_$ZFTP_SESSION]
|
||||||
|
zfconfig[lastdir_$ZFTP_SESSION]=$lastdir
|
||||||
|
fi
|
||||||
|
|
||||||
print $zfconfig[lastloc_$ZFTP_SESSION]
|
print $zfconfig[lastloc_$ZFTP_SESSION]
|
||||||
# }
|
# }
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue