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

James Bailie jimmy at jamesbailie.com
Fri Mar 3 07:37:03 PST 2006


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.  With those programs which do fiddle with the terminal
settings, the CRs might have significance, though.

It would not be difficult to add an option to screen(1) to tell
it to normalize line terminators in the log file, or perhaps
change it to normalize by default, and have the option shut it
off.  It's a very simple program (/usr/src/usr.bin/script/script.c).

-- 
James Bailie <jimmy at jamesbailie.com>
http://www.jamesbailie.com


More information about the freebsd-questions mailing list