Date: Sun, 25 May 2003 17:00:29 -0700 (PDT) From: "Simon L. Nielsen" <simon@nitro.dk> To: freebsd-doc@FreeBSD.org Subject: Re: docs/44435: sysctl manpageA add example for tcsh Message-ID: <200305260000.h4Q00TeM012442@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
The following reply was made to PR docs/44435; it has been noted by GNATS. From: "Simon L. Nielsen" <simon@nitro.dk> 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.
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200305260000.h4Q00TeM012442>