bash bleg

Jan. 23rd, 2007 12:39 pm
gusl: (Default)
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 : 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?
gusl: (Default)
Why did Firefox 1.5.0.3 remove the AutoComplete for URLs? I should have been more reluctant to upgrade!

Any solutions?

February 2020

S M T W T F S
      1
2345678
9101112131415
16171819202122
23242526272829

Syndicate

RSS Atom

Most Popular Tags

Style Credit

Expand Cut Tags

No cut tags