Looks like no one’s replied in a while. To start the conversation again, simply ask a new question.

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
Question marked as Best reply

Posted on Dec 31, 2009 7:01 AM

Here's my...

/private/etc/profile


# System-wide .profile for sh(1)
if [ -x /usr/libexec/path_helper ]; then
eval `/usr/libexec/path_helper -s`
fi
if [ "${BASH-no}" != "no" ]; then
[ -r /etc/bashrc ] && . /etc/bashrc
fi
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

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 ID.