Trouble editing ~/.bash_profile: -bash: $'\r': command not found
- by Dave
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?