Re: script(1) Why does it output in CR/LF?

2006-03-03 Thread Kristian Vaaf
At 16:05 28.02.2006, James Bailie wrote: Glenn Dawson wrote: At 02:30 AM 2/28/2006, Kristian Vaaf wrote: Hello. I am just curious why the files I generate with script(1) output in CR/LF forcing me to run dos2unix on them everytime? Script just captures the output of your shell, and

Re: script(1) Why does it output in CR/LF?

2006-03-03 Thread Donald J. O'Neill
On Friday 03 March 2006 04:52, Kristian Vaaf wrote: At 16:05 28.02.2006, James Bailie wrote: Glenn Dawson wrote: At 02:30 AM 2/28/2006, Kristian Vaaf wrote: Hello. I am just curious why the files I generate with script(1) output in CR/LF forcing me to run dos2unix on them

Re: script(1) Why does it output in CR/LF?

2006-03-03 Thread James Bailie
Kristian Vaaf wrote: The last question though, don't you find it the least bit stupid? Sure is. One is probably not going to use script(1) very often with programs which take the terminal out of canonical mode, so it makes sense to normalize line terminators when writing to the log file.

Re: script(1) Why does it output in CR/LF?

2006-03-03 Thread James Bailie
James Bailie wrote: It would not be difficult to add an option to screen(1) to tell it to normalize line terminators in the log file... I had some time on my hands, so I made a patch to add a c option to script(1) to collapse CRNL into NL in the log file. If you're interested, it's sitting

script(1) Why does it output in CR/LF?

2006-02-28 Thread Kristian Vaaf
Hello. I am just curious why the files I generate with script(1) output in CR/LF forcing me to run dos2unix on them everytime? Isn't this a bit stupid? Thanks, Vaaf ___ freebsd-questions@freebsd.org mailing list

Re: script(1) Why does it output in CR/LF?

2006-02-28 Thread Glenn Dawson
At 02:30 AM 2/28/2006, Kristian Vaaf wrote: Hello. I am just curious why the files I generate with script(1) output in CR/LF forcing me to run dos2unix on them everytime? Script just captures the output of your shell, and your shell has to send crlf in order to get the cursor back to the

Re: script(1) Why does it output in CR/LF?

2006-02-28 Thread James Bailie
Glenn Dawson wrote: At 02:30 AM 2/28/2006, Kristian Vaaf wrote: Hello. I am just curious why the files I generate with script(1) output in CR/LF forcing me to run dos2unix on them everytime? Script just captures the output of your shell, and your shell has to send crlf in order to