From owner-freebsd-questions Fri Apr 19 4:55:47 2002 Delivered-To: freebsd-questions@freebsd.org Received: from VOLTAIRE.stic.net (mail.stic.net [204.57.118.5]) by hub.freebsd.org (Postfix) with ESMTP id 66C2837B404 for ; Fri, 19 Apr 2002 04:55:40 -0700 (PDT) Received: from wallace ([216.198.62.121]) by VOLTAIRE.stic.net (Post.Office MTA v3.5.3 release 223 ID# 0-70040U18500L11000S0V35) with ESMTP id net for ; Thu, 18 Apr 2002 21:17:18 -0500 Content-Type: text/plain; charset="iso-8859-1" From: Julian Peterson To: FreeBSD Questions LIST Subject: Re: tcsh [TAB] ; man someth-[TAB]? Date: Thu, 18 Apr 2002 21:16:52 -0500 X-Mailer: KMail [version 1.4] References: <20020418180024.D291-100000@66-75-1-142.san.rr.com> <200204182011.45710.weaver@earthcorp.com> <20020419114114.P56548@k7.mavetju.org> In-Reply-To: <20020419114114.P56548@k7.mavetju.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Message-Id: <200204182116.52864.weaver@earthcorp.com> Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG On Thu, 18 Apr 2002 8:41 pm, Edwin Groothuis wrote: > On Thu, Apr 18, 2002 at 08:11:45PM -0500, Julian Peterson wrote: > > On Thu, 18 Apr 2002 8:02 pm, Peter Leftwich wrote: > > > Is it possible under tcsh (or any shell) to configure the "man" > > > command line command so that the user can type: > > > > > > prompt$ man shutd[TAB] > > > > > > And have the shell display commands either in ones ${PATH} statement > > > or that have manpages on the system? Shweetniss. > > > > Yes. > > > > add to your .tcshrc file: > > complete man 'p/*/c/' > > > > It's documented in the tcsh(1) man page FYI. > > What I wonder (after trying man asprin* to test this) is how safe > this is regarding wildcard-expansion: > > [~] edwin@k7>man a* > No manual entry for adminspotting.png > No manual entry for adstr.zip > No manual entry for allegro-4.0.0 > No manual entry for allegro-4.0.0.tar.gz > No manual entry for apache_1.3.20 > That's not what it's designed for. man a* is going to expand to: man Thats just the shells globbing in action. With the complete stuff, you type "man a" and it will complete as much as it can. Typing "man shut" will expand to "man shutdown" (assuming no other man pages have the prefix "shut") You can type "man a" and it will list all possible completions (ie all man pages starting with an "a") Regards, Julian Peterson. -- The first myth of management is that it exists. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message