Take the 2-minute tour ×
Ask Different is a question and answer site for power users of Apple hardware and software. It's 100% free, no registration required.

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

Notes:

  • terminal works fine.
  • I've tried to rename .bashrc and relaunch iterm, but the problem persists.
share|improve this question
1  
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 Lawson 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

2 Answers 2

up vote 2 down vote accepted

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

Solution:

iTerm->Preferences->Profiles->General->Command

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

 
discard

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.