diff options
author | Peter Stephenson <pws@users.sourceforge.net> | 2006-12-01 10:23:06 +0000 |
---|---|---|
committer | Peter Stephenson <pws@users.sourceforge.net> | 2006-12-01 10:23:06 +0000 |
commit | 6b1b34d1da6b0db599c026e17df011ad6c6b3a30 (patch) | |
tree | 3559a344ebd62a8b0af17c70b9b0fdaeae5e2299 /Completion | |
parent | ab8b8026dcc17f7c3d8dcfba7dba046b1ac7c42b (diff) | |
download | zsh-6b1b34d1da6b0db599c026e17df011ad6c6b3a30.tar.gz zsh-6b1b34d1da6b0db599c026e17df011ad6c6b3a30.tar.xz zsh-6b1b34d1da6b0db599c026e17df011ad6c6b3a30.zip |
c.f. 23023: new calendar function system.
Diffstat (limited to 'Completion')
-rw-r--r-- | Completion/Unix/Type/_list_files | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/Completion/Unix/Type/_list_files b/Completion/Unix/Type/_list_files index 5e745d9d1..3d5281669 100644 --- a/Completion/Unix/Type/_list_files +++ b/Completion/Unix/Type/_list_files @@ -48,6 +48,13 @@ done zmodload -i zsh/stat 2>/dev/null || return 1 +# Enable stat temporarily if disabled to avoid clashes. +integer disable_stat +if [[ ${builtins[stat]} != defined ]]; then + (( disable_stat = 1 )) + enable stat +fi + dir=${2:+$2/} dir=${(Q)dir} @@ -66,4 +73,5 @@ done (( ${#listfiles} )) && listopts=(-d listfiles -l -o) +(( disable_stat )) && disable stat return 0 |