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 directoryThis 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?
(no subject)
Date: 2007-01-23 07:56 pm (UTC)(no subject)
Date: 2007-01-23 08:45 pm (UTC)I am currently *unable* to write scripts that have carriage returns in them.
(no subject)
Date: 2007-01-23 08:46 pm (UTC)(no subject)
Date: 2007-01-23 08:53 pm (UTC)Enjoy
Date: 2007-01-23 08:17 pm (UTC)