Profile - syntax error near unexpected token 'newline'

My MAC (PowerBook G4) doesn't start because of a error.
The Mac OSX (10.4) went is strat the Mac it appears an error in the terminal (Unix/Dos like command terminal) with the fowling message:

-sh: /etc/profile:line 1: syntax error near unexpected token 'newline'
-sh: /etc/profile:line 1: '<?xml version="1.0" encoding="UTF-8"?>'
-sh-2.05b#


I have open the file "profile" and it it is not complete.
Can anyone help me?

Thanks

PowerBook G4, Mac OS X (10.4.11), 1.5 GHz - 1.5GB DDR

Posted on Dec 31, 2009 3:56 AM

Reply
4 replies

Jan 1, 2010 12:18 PM in response to BDAqua

Thanks for your quick answer.
I could not found the solution yet. I have so many doubts at this moment, and the problem remain.

Where do I put that script? In the /private/etc/profile?

But I can't change the file because it is read-only file system. How can I change the file permissions so I can write the code you sent to me for the file /private/etc/profile?

Can you help me?
Thank you

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.

Profile - syntax error near unexpected token 'newline'

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