user1844086
user1844086

Reputation:

mac terminal blowup: unexpected EOF errors

I've used virtualenv to program using my mac terminal for about 1/2 a year w/no issues. Suddenly today I began to get relative path errors when I tried to load python. There was no apparent reason for it, and eventually I tried restarting my computer.

Then I opened a new terminal window, and these new errors were present for the first time:

-bash: eval: line 4: unexpected EOF while looking for matching `"'
-bash: eval: line 5: syntax error: unexpected end of file

I assume the two misbehaviors are related in some way. Any idea what would be causing it? What files could the terminal be looking at that would cause this? AFIAK, I haven't changed anything on which it would depend.

Thx for any advice!

Upvotes: 0

Views: 4037

Answers (1)

Anders Lindahl
Anders Lindahl

Reputation: 42870

My guess is that a bash startup file (~/.bashrc, or possibly /etc/profile, ~/.bash_profile, ~/.bash_login or ~/.profile) contains a syntax error, and that causes all sorts of errors for other programs because the setup of the environment they expect does not take place.

From the error message it seems like an unterminated string constant, i.e. a missing ".

The bash manual on startup files has information about this.

You can also try to start bash in debug mode (bash -x (interactive shell) or bash -lx ( login shell)) to try to identify the error.

Upvotes: 0

Related Questions