=== modified file 'zsh-functions/zsv_write_scriptnames' --- zsh-functions/zsv_write_scriptnames 2014-06-25 09:32:54 +0000 +++ zsh-functions/zsv_write_scriptnames 2014-06-24 14:08:45 +0000 @@ -1,25 +1,19 @@ -typeset -f -T zsv_write_scriptnames - -write_scriptnames() { - local -A loaded - local ffile fname - - # check which autoloadable functions are loaded - for ffile in $^fpath/*(.N); do - fname=$ffile:t - if (($+functions[$fname])) && \ - [[ $functions[$fname] != 'builtin autoload -XU' ]] && \ - ! (($+loaded[$fname])); then - loaded[$fname]=$ffile - fi - done - - # print service's script file, explicit restart files and autoloaded - # functions into restart.files - print -rl - $svtab_src[$zsv_name] $restart_files $loaded >$zsv_dir/restart.files -} - -write_scriptnames +local -A loaded +local ffile fname + +# check which autoloadable functions are loaded +for ffile in $^fpath/*(.N); do + fname=$ffile:t + if (($+functions[$fname])) && \ + [[ $functions[$fname] != 'builtin autoload -XU' ]] && \ + ! (($+loaded[$fname])); then + loaded[$fname]=$ffile + fi +done + +# print service's script file, explicit restart files and autoloaded +# functions into restart.files +print -rl - $svtab_src[$zsv_name] $restart_files $loaded >$zsv_dir/restart.files # add the executable to restart.files if [[ $run[1] == /* ]]; then