From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 2587 invoked from network); 13 Mar 2006 18:53:04 -0000 X-Spam-Checker-Version: SpamAssassin 3.1.0 (2005-09-13) on f.primenet.com.au X-Spam-Level: X-Spam-Status: No, score=-2.4 required=5.0 tests=AWL,BAYES_00, FORGED_RCVD_HELO autolearn=ham version=3.1.0 Received: from news.dotsrc.org (HELO a.mx.sunsite.dk) (130.225.247.88) by ns1.primenet.com.au with SMTP; 13 Mar 2006 18:53:04 -0000 Received: (qmail 87898 invoked from network); 13 Mar 2006 18:52:58 -0000 Received: from sunsite.dk (130.225.247.90) by a.mx.sunsite.dk with SMTP; 13 Mar 2006 18:52:58 -0000 Received: (qmail 25613 invoked by alias); 13 Mar 2006 18:52:50 -0000 Mailing-List: contact zsh-users-help@sunsite.dk; run by ezmlm Precedence: bulk X-No-Archive: yes X-Seq: 10013 Received: (qmail 25599 invoked from network); 13 Mar 2006 18:52:50 -0000 Received: from news.dotsrc.org (HELO a.mx.sunsite.dk) (130.225.247.88) by sunsite.dk with SMTP; 13 Mar 2006 18:52:50 -0000 Received: (qmail 86734 invoked from network); 13 Mar 2006 18:52:50 -0000 Received: from cluster-c.mailcontrol.com (168.143.177.190) by a.mx.sunsite.dk with SMTP; 13 Mar 2006 18:52:47 -0000 Received: from exchange03.csr.com (uuk202166.uk.customer.alter.net [62.189.241.194] (may be forged)) by rly09c.srv.mailcontrol.com (MailControl) with ESMTP id k2DIqcRM030503 for ; Mon, 13 Mar 2006 18:52:39 GMT Received: from csr.com ([10.103.143.38]) by exchange03.csr.com with Microsoft SMTPSVC(5.0.2195.6713); Mon, 13 Mar 2006 18:52:38 +0000 To: zsh-users@sunsite.dk (Zsh users list) Subject: Re: installing zsh questions In-reply-to: <20060313181552.GA9806@let.rug.nl> References: <20060313181552.GA9806@let.rug.nl> Date: Mon, 13 Mar 2006 18:52:38 +0000 From: Peter Stephenson Message-ID: X-OriginalArrivalTime: 13 Mar 2006 18:52:38.0461 (UTC) FILETIME=[4CA3B6D0:01C646CF] Content-Type: text/plain MIME-Version: 1.0 X-Scanned-By: MailControl A-06-00-04 (www.mailcontrol.com) on 10.67.0.119 Francisco Borges wrote: > Hello! > > Two possibly very silly questions about installing zsh locally: > (BTW I'm running Debian "stable") > > 1. To make help files for run-help I used: > > % man -m /usr/local/man zshall | colcrt - | \ > perl ~/sys/zsh/zsh-4.3.1/Util/helpfiles > > But this created files like: > > A > On > By > But > No > [etc] I don't quite understand how this ever worked... the exit condition when parsing zshall doesn't appear to be in the right place. It may have been caused by a knock-on effect of another change. The following seems to do the right thing, anyway. The change to the position of the test is the fix to the problem you're noticing; the change to the test itself is explained by the comment. > 2. There are executable scripts in Functions/Misc, however 'make > install' is installing them as non-executable files. I don't think you're missing anything, we are. As the files are functions, they don't *need* to be executable; presumably people have been adding those that *can* be run stand-alone to the archive as executable files, but no one's ever bothered to make the installer spot this. Index: Util/helpfiles =================================================================== RCS file: /cvsroot/zsh/zsh/Util/helpfiles,v retrieving revision 1.3 diff -u -r1.3 helpfiles --- Util/helpfiles 30 May 2001 16:08:16 -0000 1.3 +++ Util/helpfiles 13 Mar 2006 18:50:33 -0000 @@ -107,7 +107,12 @@ undef($undented); if (/^\s*$/ || ($undented = (/^(\s*)/ && length($1) < $indent))) { $undented && &doprint($_); - while (defined($_ = <>) && /(^\w)|(^\s*$)/) { + while (defined($_ = <>) && /(^\w)|(^\s*$)/) { + # NAME is the start of the next section when in zshall. + # (Historical note: we used to exit on the page header, + # but text from the old section can continue to the + # new page). + last BUILTINS if /^\s*NAME\s*$/; last BUILTINS if /^STARTUP\/SHUTDOWN FILES/; last if /^zsh.*\s\d$/; # GNU nroff -man end-of-page marker } @@ -121,11 +126,6 @@ } while (defined($_) && /^\s*$/); } } - # In zshall, the zshcompctl manual page comes after the - # builtins for 3.0, and zshzle comes after it for 3.1. - if (/ZSH(COMPCTL|ZLE)\(1\).*ZSH(COMPCTL|ZLE)\(1\)/) { - last BUILTINS; - } if (/^(\s*)/ && length($1) < $indent) { # This may be just a bug on the SGI, or maybe something # more sinister (don\'t laugh, this is nroff). -- Peter Stephenson Software Engineer CSR PLC, Churchill House, Cambridge Business Park, Cowley Road Cambridge, CB4 0WZ, UK Tel: +44 (0)1223 692070 To access the latest news from CSR copy this link into a web browser: http://www.csr.com/email_sig.php