Date: Thu, 24 Oct 2002 16:14:21 +0200 (CEST) From: Slaven Rezic <eserte@vran.herceg.de> To: FreeBSD-gnats-submit@FreeBSD.org Subject: docs/44435: sysctl manpage: add example for tcsh Message-ID: <200210241414.g9OEEL2N024221@vran.herceg.de>
next in thread | raw e-mail | index | archive | help
>Number: 44435
>Category: docs
>Synopsis: sysctl manpage: add example for tcsh
>Confidential: no
>Severity: non-critical
>Priority: low
>Responsible: freebsd-doc
>State: open
>Quarter:
>Keywords:
>Date-Required:
>Class: change-request
>Submitter-Id: current-users
>Arrival-Date: Thu Oct 24 07:30:01 PDT 2002
>Closed-Date:
>Last-Modified:
>Originator: Slaven Rezic
>Release: FreeBSD 4.6-STABLE i386
>Organization:
www.rezic.de
>Environment:
System: FreeBSD vran.herceg.de 4.6-STABLE FreeBSD 4.6-STABLE #15: Sat Jul 27 09:32:28 CEST 2002 root@vran.herceg.de:/usr/local/src/FreeBSD-4/src/sys/compile/VRAN i386
>Description:
Add the completion example for sysctl's -N option also for tcsh.
At least, tcsh is in the base system while zsh is not.
>How-To-Repeat:
>Fix:
--- 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
+.Nm tcsh ,
+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.
>Release-Note:
>Audit-Trail:
>Unformatted:
To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-doc" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200210241414.g9OEEL2N024221>
