From owner-freebsd-doc Thu Nov 21 1:40: 5 2002 Delivered-To: freebsd-doc@hub.freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id D35D837B401 for ; Thu, 21 Nov 2002 01:40:03 -0800 (PST) Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id 8EA0243E42 for ; Thu, 21 Nov 2002 01:40:03 -0800 (PST) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.12.6/8.12.6) with ESMTP id gAL9e3x3013498 for ; Thu, 21 Nov 2002 01:40:03 -0800 (PST) (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.12.6/8.12.6/Submit) id gAL9e3Jh013496; Thu, 21 Nov 2002 01:40:03 -0800 (PST) Date: Thu, 21 Nov 2002 01:40:03 -0800 (PST) Message-Id: <200211210940.gAL9e3Jh013496@freefall.freebsd.org> To: freebsd-doc@FreeBSD.org Cc: From: Slaven Rezic Subject: Re: docs/44435: sysctl manpage: add example for tcsh Reply-To: Slaven Rezic 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 The following reply was made to PR docs/44435; it has been noted by GNATS. From: Slaven Rezic To: Giorgos Keramidas Cc: bug-followup@freebsd.org Subject: Re: docs/44435: sysctl manpage: add example for tcsh Date: 21 Nov 2002 09:14:21 +0100 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. > Do you mind if I commit a > slightly different patch than the one in the PR? One that explicitly > mentions .tcshrc like below: That's OK with me --- putting it into .tcshrc will be the common case. Regards, Slaven > %%% > Index: sysctl.8 > =================================================================== > RCS file: /home/ncvs/src/sbin/sysctl/sysctl.8,v > retrieving revision 1.47 > diff -u -r1.47 sysctl.8 > --- sysctl.8 6 Jul 2002 19:35:04 -0000 1.47 > +++ sysctl.8 21 Nov 2002 02:15:07 -0000 > @@ -95,6 +95,15 @@ > listsysctls () { set -A reply $(sysctl -AN ${1%.*}) } > compctl -K listsysctls sysctl > .Ed > +.Pp > +or if you are using > +.Nm tcsh > +as your shell, add the following to your > +.Pa .tcshrc > +file: > +.Bd -literal -offset indent > +complete sysctl 'n/*/`sysctl -Na`/' > +.Ed > .It Fl n > Show only variable values, not their names. > This option is useful for setting shell variables. > %%% > -- Slaven Rezic - slaven.rezic@berlin.de tkrevdiff - graphical display of diffs between revisions (RCS or CVS) http://ptktools.sourceforge.net/#tkrevdiff To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-doc" in the body of the message