docs/44435: sysctl manpageA add example for tcsh

Simon L. Nielsen simon at nitro.dk
Mon May 26 00:00:30 UTC 2003


The following reply was made to PR docs/44435; it has been noted by GNATS.

From: "Simon L. Nielsen" <simon at nitro.dk>
To: freebsd-gnats-submit at FreeBSD.org, slaven.rezic at 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.



More information about the freebsd-doc mailing list