Submit Hint Search The Forums LinksStatsPollsHeadlinesRSS
14,000 hints and counting!

10.4: Avoid a Process Completed error in Terminal Apps
Tiger only hintSince I upgraded to Tiger, I have had a problem with Terminal displaying [Process completed] every other time I open a new Terminal window. And to say it is annoying is being polite. It turns out the problem is mostly due to my choice of default shell -- zsh -- although I understand it can also happen with tcsh and bash, albeit less often.

I found a workaround in this thread on the Apple Discussions site:

Simply exit the shell before you close the Terminal window (by typing exit or hitting Control-D) and you will not have this problem.

[robg adds: Talk about a flashback; on the second day of the site's existence back in 2000, this hint covered the exact same problem, albeit with a much different resolution (back then, it was a bad tcsh file, and reinstalling seemed to be the required fix!). This seems much simpler, though still annoying...]
    •    
  • Currently 2.00 / 5
  You rated: 2 / 5 (4 votes cast)
 
[12,654 views]  

10.4: Avoid a Process Completed error in Terminal | 11 comments | Create New Account
Click here to return to the '10.4: Avoid a Process Completed error in Terminal' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
10.4: Avoid a Process Completed error in Terminal
Authored by: fitzage on Jul 08, '05 10:33:52AM

Well, that explains why I've never had this problem. I always like to tidy up by typing exit before I leave.



[ Reply to This | # ]
10.4: Avoid a Process Completed error in Terminal
Authored by: tirerim on Jul 08, '05 12:04:07PM
I've never had this happen, but if you set the window to close when the shell exits (under "Shell" in Window Settings), you can just type exit or ^D and not have to go to the extra step of closing the window afterwards.

[ Reply to This | # ]
10.4: Avoid a Process Completed error in Terminal
Authored by: epastoor on Jul 08, '05 12:09:25PM

Thanks for the tip Tirem! I've always wondered why it didnt close when I typed exit, but now I know how to do it! Thanks!



[ Reply to This | # ]
10.4: Avoid a Process Completed error in Terminal
Authored by: geezusfreeek on Jul 08, '05 02:05:57PM
I found a much easier solution. Go to the Terminal preferences and change the option under "When creating a new Terminal window" from "Execute the default login shell using /usr/bin/login" to "Execute this command (specify complete path):" and type "/bin/zsh" into the field below it. This alleviates all problems (unless you absolutely must use /usr/bin/login).

[ Reply to This | # ]
10.4: Avoid a Process Completed error in Terminal
Authored by: aranor on Jul 09, '05 01:10:20AM

It alleviates the problem, but it also has the side effect of making the shell no longer be a login shell, which means different files are sourced on startup and some other flags may be different.



[ Reply to This | # ]
10.4: Avoid a Process Completed error in Terminal
Authored by: Christoph on Jul 11, '05 08:45:32AM

Both zsh and bash have a command line parameter for working as a "login shell" (in the case of bash it is "--login").



[ Reply to This | # ]
10.4: Avoid a Process Completed error in Terminal
Authored by: kakos on Jul 28, '05 11:42:36AM

Alas, this doesn't work at all for me. Still exits on a regular basis (about 1 out of 2).



[ Reply to This | # ]
10.4: Avoid a Process Completed error in Terminal
Authored by: radiola on Jul 09, '05 11:20:56AM

I never made the connection between zsh crashing and the way I'd previously exited the shell.

The problem went away completely, though, when I installed zsh 4.2.5 to replace 4.2.3 which shipped with Tiger. I think both Fink and DarwinPorts have 4.2.5 available now. If you want to build and install it yourself, you may need to edit config.h as described here:

http://www.zsh.org/mla/workers/2005/msg00625.html

- Aaron



[ Reply to This | # ]
10.4: Avoid a Process Completed error in Terminal
Authored by: selcouth on Jul 10, '05 01:37:18PM

Closing the previous shell hardly helps when you're doing several things at once. Changing login isn't a good option for me either. I have heard some say that upgrading zsh didn't help. What a mess.



[ Reply to This | # ]
More mess: tab-completion in bash
Authored by: lullabud on Jul 12, '05 05:11:33PM

It's not just zsh either, I use bash and it happens too. :( I also noticed that tab-completion is broken in certain instances involving special chars. Mess indeed. I just checked it in zsh and there's no problem there.



[ Reply to This | # ]
10.4: Avoid another startup error in Terminal
Authored by: zeichensprecher on Jul 14, '05 06:02:24PM

I had a similar problem and I think it might be worth mentioning it here:

After installing GPG-Tools I had an annoying bug in Terminal: every time I opened a Terminal Window there was GPG -edit ... running.

I searched over a week for any entry in related files: autostart, .profile, init etc... but didn't found nothing. It almost drove me mad!

– but then I discovered there's a
com.apple.terminal.plist
file... it has an entry: "executionString" which will be executed whenever a new window is launched.

Don't know how it got there, but now I know where to look first, the next time such a thing happens :)



[ Reply to This | # ]