From owner-freebsd-doc Thu Oct 24 7:30:15 2002 Delivered-To: freebsd-doc@hub.freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 93C1337B401 for ; Thu, 24 Oct 2002 07:30:13 -0700 (PDT) Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id EC17B43E6A for ; Thu, 24 Oct 2002 07:30:12 -0700 (PDT) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.12.6/8.12.6) with ESMTP id g9OEU2x3074725 for ; Thu, 24 Oct 2002 07:30:02 -0700 (PDT) (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.12.6/8.12.6/Submit) id g9OEU2vN074724; Thu, 24 Oct 2002 07:30:02 -0700 (PDT) Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 7B82E37B401 for ; Thu, 24 Oct 2002 07:22:03 -0700 (PDT) Received: from mail.netbeat.de (mail.netbeat.de [62.208.140.19]) by mx1.FreeBSD.org (Postfix) with SMTP id 7CFBB43E65 for ; Thu, 24 Oct 2002 07:22:02 -0700 (PDT) (envelope-from slaven@rezic.de) Received: (qmail 14254 invoked from network); 24 Oct 2002 14:24:32 -0000 Received: from bb38c.pppool.de (HELO vran.herceg.de) (213.7.179.140) by mail.netbeat.de with SMTP; 24 Oct 2002 14:24:32 -0000 Received: (from eserte@localhost) by vran.herceg.de (8.12.4/8.12.4/Submit) id g9OEEL2N024221; Thu, 24 Oct 2002 16:14:21 +0200 (CEST) (envelope-from eserte) Message-Id: <200210241414.g9OEEL2N024221@vran.herceg.de> Date: Thu, 24 Oct 2002 16:14:21 +0200 (CEST) From: Slaven Rezic Reply-To: slaven.rezic@berlin.de To: FreeBSD-gnats-submit@FreeBSD.org X-Send-Pr-Version: 3.113 Subject: docs/44435: sysctl manpage: add example for tcsh Sender: owner-freebsd-doc@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org >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