Sign up ×
Ask Different is a question and answer site for power users of Apple hardware and software. It's 100% free, no registration required.

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 has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.

1 Answer 1

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.