From: martin f. krafft <madduck@madduck.net>
Date: Fri, 9 May 2008 23:10:54 +0000 (+0100)
Subject: do not die if compiling finds no files
X-Git-Url: https://git.donarmstrong.com/?a=commitdiff_plain;h=2ed60c52692b50d605703dcf9e0deaf985e11700;p=zsh.git

do not die if compiling finds no files
---

diff --git a/.zsh/zprofile/40_zcompile b/.zsh/zprofile/40_zcompile
index 23fd063..91b133a 100644
--- a/.zsh/zprofile/40_zcompile
+++ b/.zsh/zprofile/40_zcompile
@@ -15,7 +15,7 @@ fi
 
 if [ -n "$ZVARDIR" ] && [ -d "$ZVARDIR" ]; then
   rm -f $ZVARDIR/**/*.zwc(.N)
-  for f ($ZVARDIR/comp*(.)) zcompile $f
+  for f ($ZVARDIR/comp*(.N)) zcompile $f
 fi
 
 # vim:ft=zsh
diff --git a/.zsh/zshrc/00_recompile b/.zsh/zshrc/00_recompile
index 37c607c..b374740 100644
--- a/.zsh/zshrc/00_recompile
+++ b/.zsh/zshrc/00_recompile
@@ -8,7 +8,7 @@
 # Source repository: http://git.madduck.net/v/etc/zsh.git
 #
 
-zrecompile $ZDOTDIR/** $ZVARDIR/** | while read pre file post; do
+zrecompile $ZDOTDIR/**(N) $ZVARDIR/**(N) | while read pre file post; do
     case "$post" in
       succeeded) rm -f "${file%:}".old;;
       *) :;;