Welcome to the MacNN Forums.

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

You are here: MacNN Forums > Software - Troubleshooting and Discussion > macOS > tab function missing under csh

tab function missing under csh
Thread Tools
neilxu
Junior Member
Join Date: Aug 2002
Status: Offline
Reply With Quote
May 18, 2004, 12:50 PM
 
I have a chance to log in IBM Seaborg super computer. The dafult shell is csh. The funny thing is that the tab -- "auto complete" function -- is missing. Every time I type <tab>, it's just <tab>, no auto-complete.

Well, I tried to log in under yellowdog linux, same problem. Login from RedHat, same.

How can I find the missing <tab> function?
     
Turias
Mac Elite
Join Date: Nov 2003
Location: Minnesota
Status: Offline
Reply With Quote
May 18, 2004, 12:54 PM
 
Try double-tapping escape.
     
neilxu  (op)
Junior Member
Join Date: Aug 2002
Status: Offline
Reply With Quote
May 18, 2004, 01:10 PM
 
Originally posted by Turias:
Try double-tapping escape.
thanks for your reply.

But it shows somthing like this ^]^]

Also I tried to use ssh under WindowsXP to log in, <tab> is still missing.
     
Kristoff
Mac Elite
Join Date: Sep 2000
Location: in front of the keyboard
Status: Offline
Reply With Quote
May 18, 2004, 03:56 PM
 
tab autocompletion is NOT a feature of CSH.

It IS a feature of at least the following shells:

tcsh
zsh
bash

so, type the name of one of those shells and then you will have auto complete.
signatures are a waste of bandwidth
especially ones with political tripe in them.
     
kvm_mkdb
Mac Elite
Join Date: Oct 2000
Location: Caracas, Bolivarian Republic Of Venezuela
Status: Offline
Reply With Quote
May 18, 2004, 10:28 PM
 
Originally posted by neilxu:
thanks for your reply.

But it shows somthing like this ^]^]

Also I tried to use ssh under WindowsXP to log in, <tab> is still missing.
type: set filec

note that it will only autocomplete files/directories, but not commands.

maybe you should consider switching your shell to ksh
     
Zim
Senior User
Join Date: Apr 2001
Location: Cary, NC
Status: Offline
Reply With Quote
May 19, 2004, 09:12 AM
 
Originally posted by kvm_mkdb:
type: set filec

note that it will only autocomplete files/directories, but not commands.
Add the following 2 lines to your .cshrc (sourced with either csh or tcsh is launched)

set filec
set correct=cmd

csh won't use these, but tcsh will. The 2nd line will cause TAB to also continue commands, as well as guess corrections when you fat-finger something.

chsh -s /bin/tcsh

should change your default shell to tcsh (or you can do it in NetInfo?)

Mike
     
   
Thread Tools
 
Forum Links
Forum Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Top
Privacy Policy
All times are GMT -4. The time now is 12:44 PM.
All contents of these forums © 1995-2017 MacNN. All rights reserved.
Branding + Design: www.gesamtbild.com
vBulletin v.3.8.8 © 2000-2017, Jelsoft Enterprises Ltd.,