From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 3546 invoked from network); 14 Nov 2003 14:52:13 -0000 Received: from sunsite.dk (130.225.247.90) by ns1.primenet.com.au with SMTP; 14 Nov 2003 14:52:13 -0000 Received: (qmail 7141 invoked by alias); 14 Nov 2003 14:52:06 -0000 Mailing-List: contact zsh-workers-help@sunsite.dk; run by ezmlm Precedence: bulk X-No-Archive: yes X-Seq: 19249 Received: (qmail 7103 invoked from network); 14 Nov 2003 14:52:05 -0000 Received: from localhost (HELO sunsite.dk) (127.0.0.1) by localhost with SMTP; 14 Nov 2003 14:52:05 -0000 X-MessageWall-Score: 0 (sunsite.dk) Received: from [213.154.224.1] by sunsite.dk (MessageWall 1.0.8) with SMTP; 14 Nov 2003 14:52:5 -0000 Received: from elektron.atoom.net (f52166.upc-f.chello.nl [80.56.52.166]) by open.nlnetlabs.nl (8.12.8p2/8.12.8) with ESMTP id hAEEq2Gl051831 for ; Fri, 14 Nov 2003 15:52:02 +0100 (CET) (envelope-from miekg@atoom.net) Received: from elektron.atoom.net (localhost [127.0.0.1]) by elektron.atoom.net (8.12.10/8.12.10/Debian-4) with ESMTP id hAEEq22R013636 for ; Fri, 14 Nov 2003 15:52:02 +0100 Received: (from miekg@localhost) by elektron.atoom.net (8.12.10/8.12.10/Debian-4) id hAEEq2nn013633 for zsh-workers@sunsite.dk; Fri, 14 Nov 2003 15:52:02 +0100 Date: Fri, 14 Nov 2003 15:52:02 +0100 From: Miek Gieben To: zsh-workers@sunsite.dk Subject: Re: new builtin 'help' Message-ID: <20031114145201.GA13597@atoom.net> References: <20031114141015.GA12667@atoom.net> <20031114143421.GD19886@DervishD> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20031114143421.GD19886@DervishD> User-Agent: Vim/Mutt/Linux X-Home: www.miek.nl X-Spam-Status: No, hits=0.0 required=5.0 tests=none autolearn=no version=2.60 X-Spam-Checker-Version: SpamAssassin 2.60 (1.212-2003-09-23-exp) on open.nlnetlabs.nl X-Virus-Scanned: by amavisd-new [On 14 Nov, @15:34, DervishD wrote in "Re: new builtin 'help' ..."] > Hi Miek :) > > * Miek Gieben dixit: > > after having used bash for 8 years i've switch to zsh. Boy, what a > > difference :-) > > Yes ;)) > > > But one of the things i missed was a 'help' builtin function. > > Me too! But certainly I can't live without it ;) > > > It just prints out the files in /usr/share/zsh/help/ when the help > > builtin is used. The path is currently hardcoded. > > And it shouldn't... How about taking it from a environment > variable? I mean, this way you can use the help shipped with zsh, or > other if you want to. that is an option, but I would have thought that such a path is set at compile time. So maybe using a configure-var is what is needed. OTOH using an ENV var is also nice and clean. > IMHO, and taking into account that I don't decide, of course, is > a very good idea... Anyway, this can be implemented in a shell > function, is not necessary doing that in a builtin... true, but I felt liking coding in C ;-) (and in the same hold for bash btw, it could also be a function there) grtz Miek -- "So long, and thanks for all the fish." -- Hitchhikers Guide to the Galaxy