From owner-freebsd-questions Thu Nov 8 14:17:19 2001 Delivered-To: freebsd-questions@freebsd.org Received: from mailsrv.otenet.gr (mailsrv.otenet.gr [195.170.0.5]) by hub.freebsd.org (Postfix) with ESMTP id 5300C37B421 for ; Thu, 8 Nov 2001 14:17:00 -0800 (PST) Received: from hades.hell.gr (patr530-b234.otenet.gr [212.205.244.242]) by mailsrv.otenet.gr (8.11.5/8.11.5) with ESMTP id fA8MGrB26027; Fri, 9 Nov 2001 00:16:53 +0200 (EET) Received: (from charon@localhost) by hades.hell.gr (8.11.6/8.11.6) id fA8I2sB01105; Thu, 8 Nov 2001 20:02:54 +0200 (EET) (envelope-from charon@labs.gr) Date: Thu, 8 Nov 2001 20:02:54 +0200 From: Giorgos Keramidas To: "Brian T.Schellenberger" Cc: David Banning , Andreas Ntaflos , David Loszewski , freebsd-questions@FreeBSD.ORG Subject: Re: ^M on end of lines Message-ID: <20011108200253.D775@hades.hell.gr> References: <00a401c163fe$94084ee0$0164a8c0@daemon> <01110308243001.07574@i8k.babbleon.org> <20011103155631.A7684@sympatico.ca> <01110422082000.03811@i8k.babbleon.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <01110422082000.03811@i8k.babbleon.org> User-Agent: Mutt/1.3.22.1i Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG On Sun, Nov 04, 2001 at 10:08:20PM -0500, Brian T.Schellenberger wrote: > > I get ^M's at the end of every line in tempfile. Don't you? > > Yes. But I don't see how that contradicts what I said: They aren't visible > in the xterm, just in the scriptfile. (Because I really did type in a CR.) > But this should be true for Linux as well, so, again > > - FreeBSD should be the same Linux; > - If you FTP in the same mode, FTP should not insert or remove ^Ms; and > - The aren't visible in XTerms. > > I think that's what I said last time . . . it's what I meant to say anyway. You're mixing two different things (xterm that runs a script(1) and FTP), and yet trying to find a generalization that should fit both cases, adding two different OSes to the lot to make things worse :P The way script(1) works is intercept all the output that your terminal driver will send to the terminal screen, and record it to a file. So, when the terminal receives a ^M because you pressed RETURN in your keyboard, script(1) happilly logs the fact in it's typescript file. The way FTP works and ascii vs. binary file transfers is not related to this in any way. Don't try to understand how FTP works by deciphering the way script(1) works, or vice versa. It won't work :-) To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message