Terminal error message

Hello, I have a problem with the terminal.


When I open it up I get this error message:


Last login: Fri Jul 10 15:24:48 on ttys000

-bash: export: `2.app/Contents/MacOS:/Applications/B1FreeArchiver.app/Contents/MacOS:/Volumes/ B1FreeArchiver/B1FreeArchiver.app/Contents/MacOS:/usr/local/bin:/usr/bin:/bin:/u sr/sbin:/sbin:/opt/X11/bin': not a valid identifier

-bash: export: `1/B1FreeArchiver.app/Contents/MacOS:/Applications/B1FreeArchiver': not a valid identifier


And the terminal won't recognise most commands, does anyone know how to fix this?


I have an early 2008 Mac pro, OS X 10.10.4.

Mac Pro, OS X Yosemite (10.10.4)

Posted on Jul 10, 2015 6:34 AM

Reply
2 replies

Jul 10, 2015 6:46 AM in response to 1234hej

Back up all data.

Select

Shell ▹ New Command

from the Terminal menu bar. Uncheck the box marked

Run command inside a shell

if checked.

Copy and paste the following line into the text box that opens, then press return:

mkdir disabled_shell_files

Close the Terminal window that opens. Repeat with this line:

mv .profile .bash_history .bash_profile .bashrc .inputrc disabled_shell_files

Your old shell initialization and history files will be saved in a directory named "disabled_shell_files" at the top level of your home directory. It's normal that some of these files will not exist, and therefore you will get some "no such file" errors.

Close the window, open a new one, and test.

This thread has been closed by the system or the community team. You may vote for any posts you find helpful, or search the Community for additional answers.

Terminal error message

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple Account.