I have written a shell script called "a.sh" in linux with one line:
: and then I run this with:
chmod +x a.sh sh ./a.sh
: how do I run this without getting :
"Command not found" or "Can't cd". Maybe I have been looking at this code too long or am I doing something obviously wrong??
Note: I have since found out what was wrong. Emacs was inserting some strange "^m" character at the end of every line