0

Following on from my previous question ([echo $PATH results in /usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/bin:/bin:/bin:/bin:/bin:) I have been commenting in bash_profile everything out and then I closed the terminal, opened it again. Result: now after the first character I type it says

  • process completed

When I try to add another command, the terminal is non-responsive. Why is it doing this?

I solved the problem by: open in finder the .bash_profile [pressed Command + Shift + > to show hidden files.], reversed the commenting. Terminal works again. Still, I need to know, why?

  • What did you comment out to fix it? – Kevin Rockwell Apr 3 '19 at 17:51
  • Never mind my apologies the I failed to notice the previous question – Kevin Rockwell Apr 3 '19 at 18:55
0

Looking at the other question, it looks like the source .bash_profile is to blame. Putting this in the .bash_profile causes it to infinitely loop executing the contents of the .bash_profile over and over again. If you remove this line it should resolve your issue. If this doesn’t resolve, I’d look for lines sourcing something in other bash config files.

| improve this answer | |

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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