From slaven@rezic.de  Thu Oct 24 07:22:03 2002
Return-Path: <slaven@rezic.de>
Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125])
	by hub.freebsd.org (Postfix) with ESMTP id 7B82E37B401
	for <FreeBSD-gnats-submit@freebsd.org>; 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 <FreeBSD-gnats-submit@freebsd.org>; 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 <eserte@vran.herceg.de>
Reply-To: slaven.rezic@berlin.de
To: FreeBSD-gnats-submit@freebsd.org
Cc:
Subject: sysctl manpage: add example for tcsh
X-Send-Pr-Version: 3.113
X-GNATS-Notify:

>Number:         44435
>Category:       docs
>Synopsis:       sysctl manpage: add example for tcsh
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-doc
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Thu Oct 24 07:30:01 PDT 2002
>Closed-Date:    Sun Dec 05 23:45:56 GMT 2004
>Last-Modified:  Sun Dec 05 23:45:56 GMT 2004
>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:

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.
 %%%
 

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

From: Giorgos Keramidas <keramida@freebsd.org>
To: Slaven Rezic <slaven.rezic@berlin.de>
Cc: bug-followup@freebsd.org
Subject: Re: docs/44435: sysctl manpage: add example for tcsh
Date: Thu, 21 Nov 2002 13:31:10 +0200

 On 2002-11-21 01:40, Slaven Rezic <slaven.rezic@berlin.de> wrote:
 >Slaven Rezic <slaven.rezic@berlin.de> wrote:
 >>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.
 
 Pilot error.  I moved my .tcshrc and .cshrc out of the way and it
 works for me too.  Your diff looks fine, sorry 'bout the confusion :/
 

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.
State-Changed-From-To: open->closed 
State-Changed-By: hmp 
State-Changed-When: Sun Dec 5 23:44:58 GMT 2004 
State-Changed-Why:  
A variation of the original patch was committed by few moments ago. 

Thank you! 


http://www.freebsd.org/cgi/query-pr.cgi?pr=44435 
>Unformatted:
