From owner-freebsd-questions@FreeBSD.ORG Fri Mar 3 15:37:02 2006 Return-Path: X-Original-To: questions@freebsd.org Delivered-To: freebsd-questions@FreeBSD.ORG Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id EAC2816A420 for ; Fri, 3 Mar 2006 15:37:02 +0000 (GMT) (envelope-from jimmy@jamesbailie.com) Received: from smtp103.rog.mail.re2.yahoo.com (smtp103.rog.mail.re2.yahoo.com [206.190.36.81]) by mx1.FreeBSD.org (Postfix) with SMTP id 5CE1E43D48 for ; Fri, 3 Mar 2006 15:37:02 +0000 (GMT) (envelope-from jimmy@jamesbailie.com) Received: (qmail 55506 invoked from network); 3 Mar 2006 15:37:01 -0000 Received: from unknown (HELO ?70.29.126.205?) (jazzturk@rogers.com@70.29.126.205 with plain) by smtp103.rog.mail.re2.yahoo.com with SMTP; 3 Mar 2006 15:37:01 -0000 Message-ID: <4408629D.1010004@jamesbailie.com> Date: Fri, 03 Mar 2006 10:37:01 -0500 From: James Bailie User-Agent: Mozilla Thunderbird 1.0.7 (X11/20051218) X-Accept-Language: en-us, en MIME-Version: 1.0 To: Kristian Vaaf References: <7.0.1.0.2.20060228112857.0035f998@broadpark.no> <7.0.1.0.2.20060228025256.039d9f68@antimatter.net> <440466CF.2000007@jamesbailie.com> <7.0.1.0.2.20060303115120.022b0d30@broadpark.no> In-Reply-To: <7.0.1.0.2.20060303115120.022b0d30@broadpark.no> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: questions@freebsd.org, glenn@antimatter.net Subject: Re: script(1) > Why does it output in CR/LF? X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 03 Mar 2006 15:37:03 -0000 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 http://www.jamesbailie.com