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

Glenn Dawson glenn at antimatter.net
Tue Feb 28 03:00:22 PST 2006


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 beginning of a line.

-Glenn


>Isn't this a bit stupid?
>
>Thanks,
>Vaaf
>
>_______________________________________________
>freebsd-questions at freebsd.org mailing list
>http://lists.freebsd.org/mailman/listinfo/freebsd-questions
>To unsubscribe, send any mail to "freebsd-questions-unsubscribe at freebsd.org"



More information about the freebsd-questions mailing list