=== modified file 'zsh-functions/confz_fileset_init' --- zsh-functions/confz_fileset_init 2016-03-15 14:00:29 +0000 +++ zsh-functions/confz_fileset_init 2016-03-15 13:50:30 +0000 @@ -7,9 +7,6 @@ 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 @@ -22,6 +19,9 @@ 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_set_cur(){ - local param ftype + local param param=fileset_stat_$1 fileset_stat_cur=( "${(@kvP)param}" ) ftype=$[ [##16] $fileset_stat_cur[mode] >> 12 ]