I’m new to Cygwin, I just installed it and attempted to set some simple environment variables. However, when I open the command shell, I get the error "#357\273\277 command not found"
I found an article that discusses what the problem is and how to "discover" the hidden bad character:
http://web.archive.org/web/20100612055709/http://mblog.lib.umich.edu/DataDiscussions/archives/2010/01/index.html
e.g. $ od -c c:\\Users\\me\\.bashrc
but I don’t know how to resolve the issue by removing the character (which I validated was a problem in my .bashrc file using the od command). I attempted to change the preferences view in Notepad++ to UTF-8 and ANSI to no avail, but the file was not altered at all.
Any help would be appreciated…
Before feeding your files to cygwin bash, you can do a dos2unix conversion first to take care possible conflicts like CR LF. Open bash
name@host ~
$ dos2unix your_file.sh