My bash interpreter has been acting funny, in such a way that I've been needing to translate all (carriage returns) to ";" in my scripts, in such a way that the script becomes one huge line.
If I don't do this editing, I get the following problems:
* for each empty line in a script, I get a
* if I don't end the script with ";", I get
* for an rm command like
This seems to suggest that bash is reading my carriage returns as "\r". (However, running a script with only "echo " prints empty line, whereas "echo \r" prints "r")
Any ideas?
If I don't do this editing, I get the following problems:
* for each empty line in a script, I get a
: command not found
error.* if I don't end the script with ";", I get
syntax error: unexpected end of file
.* for an rm command like
rm C:/Documents and Settings/Administrator/filename
, I get the error:rm: cannot remove `C:/Documents and Settings/Administrator/filename\r': No such file or directory
This seems to suggest that bash is reading my carriage returns as "\r". (However, running a script with only "echo " prints empty line, whereas "echo \r" prints "r")
Any ideas?