3
1
I installed CygWin on Windows 7. Using Notepad, I edited my ~/.bash_profile file to add on to the PATH variable …
PATH="${PATH}:/cygdrive/c/apache-ant-1.8.2/bin"
Now, when I SSH in to my Windows machine, I get this error …
-bash: $'\r': command not found
-bash: $'\r': command not found
-bash: $'\r': command not found
-bash: $'\r': command not found
-bash: $'\r': command not found
-bash: /home/dev/.bash_profile: line 39: syntax error: unexpected end of file
and my PATH is not set. Anyone know how I can correct this?
1Egads, don't ever use notepad to edit a unix file. It adds the \r character at line endings, and as bash reported, it isn't tolerated very well. Run
d2u .bash_profile
to fix it. Also, you should ask questions like this on superuser not stackoverflow. – None – 2011-09-01T13:40:38.397