From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 7799 invoked from network); 8 Oct 2001 12:37:31 -0000 Received: from sunsite.dk (130.225.51.30) by ns1.primenet.com.au with SMTP; 8 Oct 2001 12:37:31 -0000 Received: (qmail 29725 invoked by alias); 8 Oct 2001 12:37:22 -0000 Mailing-List: contact zsh-workers-help@sunsite.dk; run by ezmlm Precedence: bulk X-No-Archive: yes X-Seq: 15977 Received: (qmail 29708 invoked from network); 8 Oct 2001 12:37:21 -0000 From: Borsenkow Andrej To: ZSH Workers Mailing List Subject: FW: [Cooker] zrecompile Completion/Unix fails with current install Date: Mon, 8 Oct 2001 16:36:28 +0400 Message-ID: <006401c14ff5$da54b1d0$21c9ca95@mow.siemens.ru> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Priority: 3 (Normal) X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook, Build 10.0.2627 X-MIMEOLE: Produced By Microsoft MimeOLE V6.00.2600.0000 Importance: Normal Sorry, sent to wrong list :( > > I use this function to compile every subdirectory into zwc. With current > install it fails for Unix: > > cd /tools/share/zsh/${ZSH_VERSION#zsh-}/functions > setopt nullglob extendedglob > pat="*~*.zwc~*.zwc.old" > autoload -U zrecompile > for i in . **/*(/^@); do > tmp=( $i/$~pat(^/@) ) > (($#tmp)) && { > zrecompile -p -- $i.zwc $i/$~pat(^/@) && chmod 644 $i.zwc > } > done