fileset

git mirror of https://ccx.te2000.cz/bzr/fileset
git clone https://ccx.te2000.cz/git/fileset
Log | Files | Refs | README

commit 88727d750e07b549325c4c9d38035a404a40adf0
parent c1f91b34f2a7f1740649162828e0b3401a2e12d6
Author: Jan Pobrislo <ccx@webprojekty.cz>
Date:   Tue, 15 Mar 2016 15:00:29 +0100

parameter declaration
Diffstat:
Mzsh-functions/confz_fileset_init | 8++++----
1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/zsh-functions/confz_fileset_init b/zsh-functions/confz_fileset_init @@ -7,6 +7,9 @@ zmodload -F zsh/stat b:zstat zmodload -m -F zsh/files b:zf_\* +typeset -g -A fileset_stat_cache fileset_stat_cur fileset_ftypes +typeset -g fileset_stat_cur fileset_stat_next_id fileset_stat_cur_type fileset_stat_cur_perm + fileset_ftypes=( # convert hex type to a word C S # unix socket c S @@ -19,9 +22,6 @@ fileset_ftypes=( # convert hex type to a word 1 p # FIFO pipe ) -typeset -g -A fileset_stat_cache fileset_stat_cur -typeset -g fileset_stat_cur fileset_stat_next_id fileset_stat_cur_type fileset_stat_cur_perm - fileset_reset_cache(){ # omit unsetting used variables for now # probably no particular gain in freeing them @@ -56,7 +56,7 @@ fileset_stat() { } fileset_stat_set_cur(){ - local param + local param ftype param=fileset_stat_$1 fileset_stat_cur=( "${(@kvP)param}" ) ftype=$[ [##16] $fileset_stat_cur[mode] >> 12 ]