Skip navigation
This discussion is archived

Profile - syntax error near unexpected token 'newline'

3013 Views 4 Replies Latest reply: Jan 11, 2010 1:04 PM by va2m RSS
va2m Calculating status...
Currently Being Moderated
Dec 31, 2009 3:56 AM
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
  • BDAqua Level 10 Level 10 (114,790 points)
    Currently Being Moderated
    Dec 31, 2009 7:01 AM (in response to va2m)
    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

  • BDAqua Level 10 Level 10 (114,790 points)
    OK, restart your computer, hold down Command-s and type in the following:

    /sbin/fsck -fy Enter

    /sbin/mount -uaw Enter

    That'll make it read & writable.

    Hopefully another User will drop n on how to use Pico or whatever the built in Editor is.

Actions

More Like This

  • Retrieving data ...

Bookmarked By (0)

Legend

  • This solved my question - 10 points
  • This helped me - 5 points
This site contains user submitted content, comments and opinions and is for informational purposes only. Apple disclaims any and all liability for the acts, omissions and conduct of any third parties in connection with or related to your use of the site. All postings and use of the content on this site are subject to the Apple Support Communities Terms of Use.