hworth
hworth

Reputation: 303

-bash: ≈: command not found (OS X Terminal Error), How to Fix?

Whenever I start up Terminal on my Macbook Air, I get this message:

-bash: ≈: command not found

How do I fix this error? I'm running Mavericks version 10.9.4 if that helps at all.

EDIT: Fixed this error by using the bash -x method, found out it was a random '≈' character left in ~/.profile that needed to be deleted. Thanks for the answers :)

Upvotes: 0

Views: 3793

Answers (2)

PhysicalChemist
PhysicalChemist

Reputation: 560

I definitely agree with Barmar, there is something in your bash startup scripts. There is not a great way to do this, but here is the protocol to remedy it.

  1. Confirm it is your bash profile by first killing the process with a control + C if it is hung. Then do a source ~/.bash_profile and see if you get that same error.
  2. Backup your bash profile cp ~/.bash_profile bashprofile.txt
  3. Then comment out part of your bash profile. With text wrangler you can do a command + slash.
  4. Save, then do a source ~/.bash_profile and see if the error still prints.
  5. Repeat with different areas of the script until you have isolated the infected region.

Upvotes: 1

bryn
bryn

Reputation: 3325

To debug you can try this:

bash -x -l

(the -l might not be needed).

Upvotes: 1

Related Questions