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 > Mac OS X > Tab completion (missing) and dumb terminal settings (zuh?)

Tab completion (missing) and dumb terminal settings (zuh?)
Thread Tools
Fresh-Faced Recruit
Join Date: Nov 2003
Status: Offline
Reply With Quote
Nov 26, 2003, 08:06 PM
 
Hey everyone,

Every time I open Terminal, the path to a certain executable on my computer automatically inserts itself. It looks like pasting that path is in some kind of startup script or something, and what's worse is that it exits (completes the process) and then I have a useless Terminal window after it does this. Upon selecting New Command -> login, the path (which is "/Users/blahblah/stuff/exe; exit") puts itself in the Login box and then asks me for a password. Hitting Enter and then logging in with the necessary username and password then gives me a usable shell, but it says:

tcsh: Cannot open /etc/termcap.
tcsh: using dumb terminal settings.

And now, nothing seems to work. Tab completion is no longer functional, and the executable named in the path above isn't recognized.

I have no idea what's going on here, and I'm fairly new to Darwin and OS X, not to mention Unix itself. I'd greatly appreciate any advice you guys could give. Thanks!
     
Junior Member
Join Date: Nov 2001
Location: Seattle
Status: Offline
Reply With Quote
Nov 27, 2003, 01:14 AM
 
I'm not the biggest expert here, but here are a few thoughts:

1. Open the preferences in Terminal and see if there is some command running by default. (mine just executes the default login shell, and doesn't load any special .term file)

2. Check to see if you have a .login or a .cshrc or a .tcshrc file in your home directory. If so, try moving these to .cshrc.bakup (or something like that). There's likely some command in one of these that's always executing. I believe that there are other places for setup files.. perhaps in your Library directory somewhere.

3. I usually just open a new terminal when I need a new shell, which works fine. I tried doing the New Command --> login deal, and I get the same errors you do.

Good luck!
     
mdemone  (op)
Fresh-Faced Recruit
Join Date: Nov 2003
Status: Offline
Reply With Quote
Nov 27, 2003, 01:34 AM
 
Thanks for the tips! I renamed the .cshrc file temporarily, but that doesn't seem to have fixed anything. In the meantime, I've discovered that tab-completion still works in bash, but not in csh or tcsh. I also managed to get new shells to load the normal login script, which is fine. Before all this, starting a new shell/Terminal would usually log me in automatically.

I have no idea what's going on, but it's functional enough now to get my work done for the time being.
     
Dedicated MacNNer
Join Date: Jul 2001
Location: NC
Status: Offline
Reply With Quote
Nov 27, 2003, 08:32 AM
 
   It's my guess that the "ExecutionString" key in the ~/Library/Preferences/com.apple.Terminal.plist preference file has had it's value set to a string that the Terminal thinks you want to execute every time you open a Terminal window. Basically a bug (or misguided feature) caused the Terminal to write that string into it's preferences. Your problem will be solved if you open the ~/Library/Preferences/com.apple.Terminal.plist file, find the "ExecutionString" key and empty it's value. However, unless you're familiar with this type of thing, it's probably easier to trash the ~/Library/Preferences/com.apple.Terminal.plist file. The Terminal will create a new one for you. You may have to reset a few preferences but it shouldn't be a big deal as there aren't that many preferences.
Gary
A computer scientist is someone who, when told to "Go to Hell", sees the
"go to", rather than the destination, as harmful.
     
   
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
Trackbacks are On
Pingbacks are On
Refbacks are On
Top
Privacy Policy
All times are GMT -5. The time now is 02:50 PM.
All contents of these forums © 1995-2011 MacNN. All rights reserved.
Branding + Design: www.gesamtbild.com
vBulletin v.3.8.7 © 2000-2011, Jelsoft Enterprises Ltd., Content Relevant URLs by vBSEO 3.3.2