1

Unexpected token on bash file backtrack5 r2

view story
linux-howto

http://unix.stackexchange.com – When I log in, appears the following error: -bash: /etc/profile: line 1: syntax error near unexpected token (' Inside the file there is the next code: n# /etc/profile: system-wide .profile file for the Bourne shell (sh(1))\n # and Bourne compatible shells (bash(1), ksh(1), ash(1), ...).\n\nif [ -d /etc/profile.d ]; then\nfor i in /etc/profile.d/*.sh; do\nif [ -r $i ]; then\n. $i\nfi\ndone\nunset i\nfi\n\nif [ "$PS1" ]; then\nif [ "$BASH" ]; then\nPS1=u@h:w$ \nif [ -f /etc/bash.bashrc ]; then\n. /etc/bash.bashrc\nfi\nelse\nif [ "id -u" -eq 0 ]; then\nPS1=# \nelse\nPS1=$ \nfi\nfi\nfi\n (HowTos)