Date: Wed, 20 Nov 2002 18:30:02 -0800 (PST) From: Giorgos Keramidas <keramida@freebsd.org> To: freebsd-doc@FreeBSD.org Subject: Re: docs/44435: sysctl manpage: add example for tcsh Message-ID: <200211210230.gAL2U2BB077161@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: Giorgos Keramidas <keramida@freebsd.org>
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
help
Want to link to this message? Use this
URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200211210230.gAL2U2BB077161>
