Date: Thu, 21 Nov 2002 01:40:03 -0800 (PST) From: Slaven Rezic <slaven.rezic@berlin.de> To: freebsd-doc@FreeBSD.org Subject: Re: docs/44435: sysctl manpage: add example for tcsh Message-ID: <200211210940.gAL9e3Jh013496@freefall.freebsd.org>
index | next in thread | raw e-mail
The following reply was made to PR docs/44435; it has been noted by GNATS.
From: Slaven Rezic <slaven.rezic@berlin.de>
To: Giorgos Keramidas <keramida@freebsd.org>
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 <keramida@freebsd.org> 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
help
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200211210940.gAL9e3Jh013496>
