Re: Script polluted by DOS formatting

2007-07-13 Thread Christian Holm Christensen
Hi Francesco, On Thu, 2007-07-12 at 09:28 -0700, Bob McGowan wrote: Francesco Pietra wrote: be sure you get this. Apologies if you are subscribed and get mail twice. Ditto. ... VIM, if configured to do so (see 'set fileformat' and 'set fileformats' in VIM help), will do auto conversion

Re: Script polluted by DOS formatting

2007-07-13 Thread Rupert Swarbrick
On Fri, 13 Jul 2007 22:44:38 +0200 Christian Holm Christensen [EMAIL PROTECTED] wrote: Why not write a small C++ program that does what you want: #include iostream int main() { while (!std::cin.eof()) { char c = std::cin.get(); if

Re: Script polluted by DOS formatting

2007-07-13 Thread Jordi GutiƩrrez Hermoso
On 13/07/07, Christian Holm Christensen [EMAIL PROTECTED] wrote: Why not write a small C++ program that does what you want: #include iostream int main() { while (!std::cin.eof()) { char c = std::cin.get(); if (std::cin.fail())

Script polluted by DOS formatting

2007-07-12 Thread Francesco Pietra
A script downloaded to a desktop i386/etch/gnome from Amber web site, edited on the desktop with gnome text editor, then sent scp to a computing machine amd64, turned out to be polluted by DOS formatting. The computing program was prevented from reading the polluted lines. I tried dos2unix

Re: Script polluted by DOS formatting

2007-07-12 Thread Bob McGowan
Francesco Pietra wrote: I'm leaving you CC'd on this, something I don't usually do, as I want to be sure you get this. Apologies if you are subscribed and get mail twice. A script downloaded to a desktop i386/etch/gnome from Amber web site, edited on the desktop with gnome text editor, then