Date: Thu, 21 Nov 2002 11:35:31 -0500 (EST) From: John Baldwin <jhb@FreeBSD.org> To: Giorgos Keramidas <keramida@freebsd.org> Cc: freebsd-doc@FreeBSD.org Subject: Re: docs/44435: sysctl manpage: add example for tcsh Message-ID: <XFMail.20021121113512.jhb@FreeBSD.org> In-Reply-To: <200211211140.gALBe3j9068591@freefall.freebsd.org>
next in thread | previous in thread | raw e-mail | index | archive | help
On 21-Nov-2002 Giorgos Keramidas wrote:
> The following reply was made to PR docs/44435; it has been noted by GNATS.
>
> 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 :/
Hmm, I use "sysctl 'p/*/`sysctl -aN`/'". See the tcsh manpage for the
difference between 'n' and 'p' style completions:
n Next-word completion. pattern is a glob-pattern which
must match the beginning of the previous word on the
command line.
p Position-dependent completion. pattern is a numeric
range, with the same syntax used to index shell vari-
ables, which must include the current word.
Most of the examples tend to use 'p' in the manpage for these types
of completions. However, I don't think that shell completion hints
for different commands belong in man pages. I think sticking completions
for FreeBSD commands /usr/share/examples/<my favorite shell>/completions
is a better approach.
--
John Baldwin <jhb@FreeBSD.org> <>< http://www.FreeBSD.org/~jhb/
"Power Users Use the Power to Serve!" - http://www.FreeBSD.org/
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?XFMail.20021121113512.jhb>
