]> git.donarmstrong.com Git - zsh.git/commitdiff
do not die if compiling finds no files
authormartin f. krafft <madduck@madduck.net>
Fri, 9 May 2008 23:10:54 +0000 (00:10 +0100)
committermartin f. krafft <madduck@madduck.net>
Fri, 9 May 2008 23:10:54 +0000 (00:10 +0100)
.zsh/zprofile/40_zcompile
.zsh/zshrc/00_recompile

index 23fd063cc1589356d1e3654b13673b74a6d29d6b..91b133af00427fc4fbddfee967f5fe480322d3cf 100644 (file)
@@ -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
index 37c607c69558ccc1253bdaee0c9c1dffee705dff..b374740790fda41f1e2361adbd4ab70f8adabeab 100644 (file)
@@ -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;;
       *) :;;