mirror of
git://git.code.sf.net/p/zsh/code
synced 2025-10-27 04:40:59 +01:00
unposted: silence some warnings when WARN_CREATE_GLOBAL is set
This commit is contained in:
parent
8cc1fe7081
commit
198a53dd46
3 changed files with 7 additions and 1 deletions
|
|
@ -2,6 +2,8 @@
|
|||
# storing it in fcache_name, then generate the cache for the current
|
||||
# directory, or with argument -d clear the cache.
|
||||
|
||||
[[ $1 = -d ]] && local fcache_name
|
||||
|
||||
fcache_name=$zfconfig[fcache_$ZFTP_SESSION]
|
||||
if [[ -z $fcache_name ]]; then
|
||||
local vals
|
||||
|
|
|
|||
|
|
@ -48,7 +48,7 @@ if [[ -n $ZFTP_TRANSFER ]]; then
|
|||
unset zftpseconds
|
||||
print 1>&2
|
||||
else
|
||||
zftpseconds=$SECONDS
|
||||
typeset -g zftpseconds=$SECONDS
|
||||
fi
|
||||
fi
|
||||
# }
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue