From owner-freebsd-doc Thu Nov 21 8:35:31 2002 Delivered-To: freebsd-doc@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 0B16A37B401 for ; Thu, 21 Nov 2002 08:35:30 -0800 (PST) Received: from mail.speakeasy.net (mail15.speakeasy.net [216.254.0.215]) by mx1.FreeBSD.org (Postfix) with ESMTP id 888B843E4A for ; Thu, 21 Nov 2002 08:35:29 -0800 (PST) (envelope-from jhb@FreeBSD.org) Received: (qmail 18223 invoked from network); 21 Nov 2002 16:35:32 -0000 Received: from unknown (HELO server.baldwin.cx) ([216.27.160.63]) (envelope-sender ) by mail15.speakeasy.net (qmail-ldap-1.03) with DES-CBC3-SHA encrypted SMTP for ; 21 Nov 2002 16:35:32 -0000 Received: from laptop.baldwin.cx (gw1.twc.weather.com [216.133.140.1]) by server.baldwin.cx (8.12.6/8.12.6) with ESMTP id gALGZR2D038791; Thu, 21 Nov 2002 11:35:27 -0500 (EST) (envelope-from jhb@FreeBSD.org) Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 8bit MIME-Version: 1.0 Message-ID: X-Mailer: XFMail 1.5.2 on FreeBSD X-Priority: 3 (Normal) In-Reply-To: <200211211140.gALBe3j9068591@freefall.freebsd.org> Date: Thu, 21 Nov 2002 11:35:31 -0500 (EST) From: John Baldwin To: Giorgos Keramidas Subject: Re: docs/44435: sysctl manpage: add example for tcsh Cc: freebsd-doc@FreeBSD.org Sender: owner-freebsd-doc@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org On 21-Nov-2002 Giorgos Keramidas wrote: > The following reply was made to PR docs/44435; it has been noted by GNATS. > > From: Giorgos Keramidas > To: Slaven Rezic > Cc: bug-followup@freebsd.org > Subject: Re: docs/44435: sysctl manpage: add example for tcsh > Date: Thu, 21 Nov 2002 13:31:10 +0200 > > On 2002-11-21 01:40, Slaven Rezic wrote: > >Slaven Rezic wrote: > >>Giorgos Keramidas writes: > >>> The suggested command doesn't work on the tcsh prompt for me, but it > >>> does work if put it in my .tcshrc file. > >> > >>Strange, the example works for me in the command line. > > Pilot error. I moved my .tcshrc and .cshrc out of the way and it > works for me too. Your diff looks fine, sorry 'bout the confusion :/ Hmm, I use "sysctl 'p/*/`sysctl -aN`/'". See the tcsh manpage for the difference between 'n' and 'p' style completions: n Next-word completion. pattern is a glob-pattern which must match the beginning of the previous word on the command line. p Position-dependent completion. pattern is a numeric range, with the same syntax used to index shell vari- ables, which must include the current word. Most of the examples tend to use 'p' in the manpage for these types of completions. However, I don't think that shell completion hints for different commands belong in man pages. I think sticking completions for FreeBSD commands /usr/share/examples//completions is a better approach. -- John Baldwin <>< http://www.FreeBSD.org/~jhb/ "Power Users Use the Power to Serve!" - http://www.FreeBSD.org/ To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-doc" in the body of the message