From owner-freebsd-questions Sat Nov 3 14: 9:48 2001 Delivered-To: freebsd-questions@freebsd.org Received: from ren.sasknow.com (ren.sasknow.com [207.195.92.131]) by hub.freebsd.org (Postfix) with ESMTP id DFFBB37B43C for ; Sat, 3 Nov 2001 14:09:38 -0800 (PST) Received: from localhost (ryan@localhost) by ren.sasknow.com (8.9.3/8.9.3) with ESMTP id QAA15149; Sat, 3 Nov 2001 16:09:27 -0600 (CST) (envelope-from ryan@sasknow.com) Date: Sat, 3 Nov 2001 16:09:27 -0600 (CST) From: Ryan Thompson To: David Banning Cc: "Brian T. Schellenberger" , freebsd-questions@FreeBSD.ORG Subject: Re: ^M on end of lines In-Reply-To: <20011103155631.A7684@sympatico.ca> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII 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 David Banning wrote to Brian T. Schellenberger: > > The ^Ms are invisible in, say, an xterm, so if you care comparting vi'ing the > > file to just cat'ing it, it could be a matter of whether you *see* them > > rather than whether they are *there*. > > I am using xterm, and when I go; > > 'script tempfile ls' > > I get ^M's at the end of every line in tempfile. Don't you? Sure you will... Because script(1) records literally all input and output. If you make a typing mistake and have to backspace, you'll also get ^H's all over the place. When you hit your "enter" or "return" key, the term gets 0x0d (^M), so script(1) saves that to your typescript file. - Ryan -- Ryan Thompson Network Administrator, Accounts SaskNow Technologies - http://www.sasknow.com #106-380 3120 8th St E - Saskatoon, SK - S7H 0W2 Tel: 306-664-3600 Fax: 306-664-1161 Saskatoon Toll-Free: 877-727-5669 (877-SASKNOW) North America To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message