Re: [pure-lang-users] \r bug
Status: Beta
Brought to you by:
agraef
From: Eddie R. <er...@bm...> - 2008-07-21 14:53:10
|
On Mon, 2008-07-21 at 16:36 +0200, Jiří Spitz wrote: > Eddie Rucker wrote: > > When I tried to test a script I had written using notepad on my Linux > > box I got the following errors. > > > > erucker@erucker:~/Desktop$ pure -i test.pure > > 'est.pure:4.8: invalid character ' > > test.pure:4.8: syntax error, unexpected invalid character > > 'est.pure:5.14: invalid character ' > > test.pure:6.28: syntax error, unexpected ']', expecting '=' or '|' > > test.pure:6.62-64: syntax error, unexpected ']', expecting '=' or '|' > > 'est.pure:6.66: invalid character ' > > ... > > > This is problem of different file formats on Linux and Windows. Windows' > text files have lines delimited by CR+LF characters wheras Linux' ones > only by LF. Files created under Windows exhibit the described behaviour > under Linux. Most programers' text editors (not Notepad) allow change > the file format. I'm not too familiar with Windoze but I knew about the \r\n sequences. I had to write the script on someone else's machine (who doesn't want another text editor) and I had to test it on my Linux box. It just seems strange that e.r. |