Ask Different is a question and answer site for power users of Apple hardware and software. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

Possible Duplicate:
iTerm2 terminals close immediately with “argpath=login error=No such file or directory”

iTerm2 is immediately closed after launch with the error:

"argpath=login error=No such file or directory"

If I switch from login to command (with bash -l) I'm getting the following error:

"argpath=bash error=No such file or directory"

I'm running OSX Lion.

How this can be fixed?

share|improve this question

marked as duplicate by patrix, Loïc Wolff, bmike Aug 14 '12 at 19:28

This question was marked as an exact duplicate of an existing question.

Looks like there is some problem with reading whatever iTerm2 reads as a login shell. Try changing the preference in 'Profiles/General' to a specific command (i.e. /bin/bash) and see if that works.

Additionally, does Apple's terminal work? could you do something like

echo $SHELL

and see if bash actually exists on your machine? Bash is quite unfussed on what login items you have, so make sure you have a minimal .bash_profile and .bashrc in your $HOME

Give it a try and let's see if we get enough info to help you.

share|improve this answer
I have this in my .bashrc: $ cat .bashrc export TERM=xterm-256color – user1256923 May 14 '12 at 13:53
also look at… – user1256923 May 14 '12 at 13:56
and at:… – user1256923 May 14 '12 at 13:56
It seems that /bin is no longer in my path so the command should be /bin/bash instead of bin. How can I fix this? – user49204 May 14 '12 at 14:03

Not the answer you're looking for? Browse other questions tagged or ask your own question.