From owner-freebsd-doc Wed Nov 20 18:30: 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 3540037B401 for ; Wed, 20 Nov 2002 18:30:03 -0800 (PST) Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id E312F43E42 for ; Wed, 20 Nov 2002 18:30:02 -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 gAL2U2x3077163 for ; Wed, 20 Nov 2002 18:30:02 -0800 (PST) (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.12.6/8.12.6/Submit) id gAL2U2BB077161; Wed, 20 Nov 2002 18:30:02 -0800 (PST) Date: Wed, 20 Nov 2002 18:30:02 -0800 (PST) Message-Id: <200211210230.gAL2U2BB077161@freefall.freebsd.org> To: freebsd-doc@FreeBSD.org Cc: From: Giorgos Keramidas Subject: Re: docs/44435: sysctl manpage: add example for tcsh Reply-To: Giorgos Keramidas 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: Giorgos Keramidas To: slaven.rezic@berlin.de Cc: bug-followup@freebsd.org Subject: Re: docs/44435: sysctl manpage: add example for tcsh Date: Thu, 21 Nov 2002 04:20:42 +0200 The suggested command doesn't work on the tcsh prompt for me, but it does work if put it in my .tcshrc file. Do you mind if I commit a slightly different patch than the one in the PR? One that explicitly mentions .tcshrc like below: %%% 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. %%% To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-doc" in the body of the message