Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 5 Jul 2002 14:21:36 -0400 (EDT)
From:      Jerry McAllister <jerrymc@clunix.cl.msu.edu>
To:        pavan.balaji@intel.com (Balaji, Pavan)
Cc:        dan@slightlystrange.org ('dan@slightlystrange.org'), freebsd-questions@FreeBSD.ORG
Subject:   Re: tcsh: list of all files when pressing tab
Message-ID:  <200207051821.g65ILaK03840@clunix.cl.msu.edu>
In-Reply-To: <3D386AED1B47D411A94300508B11F18703BC5B50@fmsmsx116.fm.intel.com> from "Balaji, Pavan" at Jul 05, 2002 10:54:54 AM

next in thread | previous in thread | raw e-mail | index | archive | help
> 
> 
> tab completion is a property of the "bash" shell, and not of linux.

That sounds more like a bash religion post than an answer.

Yes, it's not a property of LINUX (nor FreeBSD) per se.  But, 
although tab completion is a property of tcsh, it behaves differently
under BSD (completion but no choice list) than it does under sVr4 (Solaris,
 LINUX) completion or choice list).  So, either they are using different 
versionsof tcsh or tcsh is responding to differences in the way the 
respective environments are typically set up.  

> You can do the same in tcsh by using Ctrl+D (instead of tab). The other
> approach is to load a bash shell.

No, tab does completion with tcsh just fine. 
If you want to get a choice list when there is more than one possibility,
then do as Dan has already suggested.  Add the following to your .cshrc
file and then either 'source .cshrc' or log back out and in again.  
It works just fine.  No need to confuse the issue with bash.

set filec
set autolist

> You can load a bash shell on FreeBSD by using /usr/bin/bash or
> /usr/local/bin/bash, whichever is appropriate. You can make it your default
> shell by using the chsh command.

Maybe the person would prefer not to be afflicted with the bash shell.
He's already using a shell (tcsh) capable of doing what he wants.

////jerry
 
> Pavan Balaji,
> CIS Graduate Student,
> Ohio State University
> 
> "Being happy doesn't mean that everything is perfect... It just means that
> you have decided to see beyond the imperfections"  --  Rash
> 
> 
> > -----Original Message-----
> > From: Daniel Bye [mailto:dan@slightlystrange.org]
> > Sent: Friday, July 05, 2002 8:14 AM
> > To: freebsd-questions@FreeBSD.ORG
> > Subject: Re: tcsh: list of all files when pressing tab
> > 
> > 
> > On Fri, Jul 05, 2002 at 12:57:19PM +0200, Pascal Giannakakis wrote:
> > > Hi, 
> > >  
> > > in tcsh i can type "/u" and press tab to autocomplete the 
> > path to "/usr/".
> > > However, 
> > > if there is more than one match, i would like to have a 
> > list of all possible
> > > path's. 
> > > I know this from linux. What is this feature called and how 
> > do i enable it?
> > > thx! 
> > >  
> > 
> > Try these:
> > 
> > set filec
> > set autolist
> > 
> > They can be put in your .cshrc, and they work fine for me.  
> > See how you go.
> > 
> > Dan
> > 
> > -- 
> > Daniel Bye
> > 
> > PGP Key: ftp://ftp.slightlystrange.org/pgpkey/dan.asc
> > PGP Key fingerprint: 3D73 AF47 D448 C5CA 88B4 0DCF 849C 1C33 3C48 2CDC
> >                                                                      _
> >                                               ASCII ribbon 
> > campaign ( )
> >                                          - against HTML, vCards and  X
> >                                 - proprietary attachments in 
> > e-mail / \
> > 
> > To Unsubscribe: send mail to majordomo@FreeBSD.org
> > with "unsubscribe freebsd-questions" in the body of the message
> > 
> 
> To Unsubscribe: send mail to majordomo@FreeBSD.org
> with "unsubscribe freebsd-questions" in the body of the message
> 


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-questions" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200207051821.g65ILaK03840>