From owner-freebsd-doc@FreeBSD.ORG Sun May 25 17:00:30 2003 Return-Path: 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 5867337B401 for ; Sun, 25 May 2003 17:00:30 -0700 (PDT) Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id 02B8443F3F for ; Sun, 25 May 2003 17:00:30 -0700 (PDT) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.12.9/8.12.9) with ESMTP id h4Q00TUp012443 for ; Sun, 25 May 2003 17:00:29 -0700 (PDT) (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.12.9/8.12.9/Submit) id h4Q00TeM012442; Sun, 25 May 2003 17:00:29 -0700 (PDT) Date: Sun, 25 May 2003 17:00:29 -0700 (PDT) Message-Id: <200305260000.h4Q00TeM012442@freefall.freebsd.org> To: freebsd-doc@FreeBSD.org From: "Simon L. Nielsen" Subject: Re: docs/44435: sysctl manpageA add example for tcsh X-BeenThere: freebsd-doc@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list Reply-To: "Simon L. Nielsen" List-Id: Documentation project List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 26 May 2003 00:00:30 -0000 The following reply was made to PR docs/44435; it has been noted by GNATS. From: "Simon L. Nielsen" To: freebsd-gnats-submit@FreeBSD.org, slaven.rezic@berlin.de Cc: Subject: Re: docs/44435: sysctl manpageA add example for tcsh Date: Mon, 26 May 2003 01:53:50 +0200 In the name of close a doc PR. I think this seems like a very good idea to add. I didn't know about the feature but this code is certainly going to my .tcshrc now. I would suggest to reference tcsh(1) with Xr instead of using ".Nm tcsh" like : %%% --- sbin/sysctl/sysctl.8.orig Thu Oct 24 16:09:29 2002 +++ sbin/sysctl/sysctl.8 Thu Oct 24 16:11:22 2002 @@ -93,6 +93,13 @@ listsysctls () { set -A reply $(sysctl -AN ${1%.*}) } compctl -K listsysctls sysctl .Ed +.Pp +or in +.Xr tcsh 1 , +the following code: +.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. %%% Just my 0.02c. -- Simon L. Nielsen With no PGP since GNATS don't like mime patches.