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

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

I've made some changes to my .bashrc file in my new MacBook, mainly aliases for common commands.

Shortly after, iterm2 immediately closes every new session or tab with the following cryptic message:

## exec failed ##
argpath= error=No such file or directory


  • terminal works fine.
  • I've tried to rename .bashrc and relaunch iterm, but the problem persists.
share|improve this question
When you say "no luck", do you mean you are unable to rename .bashrc, or that when you do, the problem persists? If it is the second, have you relaunched iTerm2 or rebooted since renaming .bashrc? – Daniel Jan 31 '12 at 12:12
Clarified the question - I meant that the renaming did not help. I will try to reboot now. – Adam Matan Jan 31 '12 at 13:19
up vote 4 down vote accepted

The default shell was a command shell without command, not a login shell.



Set radio button to Login shell

share|improve this answer

Given the error message, you are trying to assign some value to the argpath variable, but you have a space after the = -- no spaces allowed there.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

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