diff options
author | Peter Stephenson <pws@users.sourceforge.net> | 2006-05-12 14:58:43 +0000 |
---|---|---|
committer | Peter Stephenson <pws@users.sourceforge.net> | 2006-05-12 14:58:43 +0000 |
commit | 518f437c687bca33aeb4ae804a0b82c1f63ea148 (patch) | |
tree | 5e207617a9c430c739d9b15301ac6b921382180f /Completion/Unix | |
parent | 38356d85ba1c3417aaade2f742fcccca2286ec26 (diff) | |
download | zsh-518f437c687bca33aeb4ae804a0b82c1f63ea148.tar.gz zsh-518f437c687bca33aeb4ae804a0b82c1f63ea148.tar.xz zsh-518f437c687bca33aeb4ae804a0b82c1f63ea148.zip |
22440: _list_files loaded zsh/stat too early
unposted: document the use of stat builtin unposted: improve docs for $$ and $PPID
Diffstat (limited to 'Completion/Unix')
-rw-r--r-- | Completion/Unix/Type/_list_files | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Completion/Unix/Type/_list_files b/Completion/Unix/Type/_list_files index 2166ac6cc..bd5c1fa62 100644 --- a/Completion/Unix/Type/_list_files +++ b/Completion/Unix/Type/_list_files @@ -15,8 +15,6 @@ integer ok listfiles=() listopts=() -zmodload -i zsh/stat 2>/dev/null || return 1 - zstyle -a ":completion:${curcontext}:" file-list stylevals || return 1 # TODO: more flexible way of handling the following? e.g. use $compstate? @@ -48,6 +46,8 @@ done (( ok )) || return 1 +zmodload -i zsh/stat 2>/dev/null || return 1 + for f in ${(P)1}; do if [[ ! -e "${2:+$2/}$f" ]]; then listfiles+=("${2:+$2/}$f") |