Super User is a question and answer site for computer enthusiasts and power users. Join them; it only takes a minute:

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

Just recently, my terminal window has started displaying a bunch of errors at the beginning of each new session. It's almost as if it's spitting out the default text (date, etc) and interpreting it as an alias? I didn't change anything that I know of, and I've reset my computer, etc. Any ideas?

enter image description here

share|improve this question

migrated from Jan 4 '10 at 23:16

This question came from our site for professional and enthusiast programmers.

Looks like you have a bash start script that has some currently invalid stuff in it. Check your .bashrc,.bash_profile and .bash_login to see if there is any offending scripting in there.

Did you recently import your account to a new/reinstalled machine or have you change the user account type for your user? Any other changes recently?

share|improve this answer
If my memory serves (I'm not near a Mac at the moment), bash on the Mac actually uses .profile for configuration – Matt Greer Jan 4 '10 at 22:54
On recent OS X systems (10.4+) at least, bash "looks for ~/.bash_profile, ~/.bash_login, and ~/.profile, in that order" just like on other unix-y systems. – Ned Deily Jan 4 '10 at 22:58
Yes thats the primary file. But it sill also uses .bash_login and i think .bashrc although ive never tried .bashrc. I mentioned all three jsut because you never know where someone might try to stick their config :-) – prodigitalson Jan 4 '10 at 22:58

Have you installed GhostScript or MacTex? Seems like they do a set of changes to a bunch of resource files that the others are referring to.

How to fix it? Try doing below commands in the terminal to find which file might be affected

grep setloginpath /etc/*
grep setloginpath ~/.*

First line is to check the system wide configuration files for setloginpath and the second line to check your user account configuration files for setloginpath.

Hopefully you will find a file containing something in the line with

setloginpath added /usr/local/bin start at Sun Dec 20 01:00:21 PST 2009

When you found it you will have to remove the problematic line...

share|improve this answer

You must log in to answer this question.