1
0
Fork 0
mirror of git://git.code.sf.net/p/zsh/code synced 2025-09-11 00:51:05 +02:00

unposted: silence some warnings when WARN_CREATE_GLOBAL is set

This commit is contained in:
Peter Stephenson 2008-10-10 13:20:05 +00:00
parent 8cc1fe7081
commit 198a53dd46
3 changed files with 7 additions and 1 deletions

View file

@ -1,5 +1,9 @@
2008-10-10 Peter Stephenson <pws@csr.com> 2008-10-10 Peter Stephenson <pws@csr.com>
* unposted: Functions/Zftp/zffcache,
Functions/Zftp/zftp_progroess: silence some warnings when
WARN_CREATE_GLOBAL is set.
* unposted: Config/version.mk: 4.3.6-dev-1. * unposted: Config/version.mk: 4.3.6-dev-1.
* unposted: Test/B06fc.ztst: use -f flag to zsh to prevent * unposted: Test/B06fc.ztst: use -f flag to zsh to prevent

View file

@ -2,6 +2,8 @@
# storing it in fcache_name, then generate the cache for the current # storing it in fcache_name, then generate the cache for the current
# directory, or with argument -d clear the cache. # directory, or with argument -d clear the cache.
[[ $1 = -d ]] && local fcache_name
fcache_name=$zfconfig[fcache_$ZFTP_SESSION] fcache_name=$zfconfig[fcache_$ZFTP_SESSION]
if [[ -z $fcache_name ]]; then if [[ -z $fcache_name ]]; then
local vals local vals

View file

@ -48,7 +48,7 @@ if [[ -n $ZFTP_TRANSFER ]]; then
unset zftpseconds unset zftpseconds
print 1>&2 print 1>&2
else else
zftpseconds=$SECONDS typeset -g zftpseconds=$SECONDS
fi fi
fi fi
# } # }