From owner-freebsd-questions@FreeBSD.ORG Wed Apr 16 19:41:47 2003 Return-Path: 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 2291637B401 for ; Wed, 16 Apr 2003 19:41:47 -0700 (PDT) Received: from quasi.concon.homeip.net (adsl-67-116-217-192.dsl.sndg02.pacbell.net [67.116.217.192]) by mx1.FreeBSD.org (Postfix) with ESMTP id 2B12143F75 for ; Wed, 16 Apr 2003 19:41:46 -0700 (PDT) (envelope-from jconner@enterit.com) Received: from there (snafux [192.168.100.13])h3H1jn42001383; Wed, 16 Apr 2003 21:45:50 -0400 Message-Id: <200304170145.h3H1jn42001383@quasi.concon.homeip.net> Content-Type: text/plain; charset="iso-8859-1" From: Jim To: Warren Block , Christopher Rosado Date: Wed, 16 Apr 2003 18:44:24 -0800 X-Mailer: KMail [version 1.3.2] References: <5.2.0.9.2.20030415085340.01bae4a0@mail.servplex.com> <200304152334.26957.chris@topher.gintera.net> <20030416173147.Y23561@wonkity.com> In-Reply-To: <20030416173147.Y23561@wonkity.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit cc: freebsd-questions@freebsd.org Subject: Re: [mail_lists] Re: dos2unix??? X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list Reply-To: jconner@enterit.com List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 17 Apr 2003 02:41:47 -0000 On Wednesday 16 April 2003 16:35, Warren Block wrote: | On Tue, 15 Apr 2003, Christopher Rosado wrote: | > -----BEGIN PGP SIGNED MESSAGE----- | > Hash: SHA1 | > | > On Tuesday 15 April 2003 04:46 pm, Warren Block wrote: | > > Um... ^M would mean an M at the start of a line. This should be | > > | > > s/\r//g; | > | > Try pressing CTRL-V then CTRL-M in vi ... the result is ^M as a control | > character. I use s/^M//g quite frequently. | | I try to avoid unprintable characters in programs because, well, they're | unprintable. \r is less typing, doesn't screw up when you print it | to paper, and won't be confused with a beginning-of-line anchor and a | capital M. | As a general rule I agree with this philosophy. One is begging for trouble if one uses such progmas within one's production programs/scripts. If I were to happen upon a program/script that required me to maintain it post-facto and I noticed that when I more'd or cat'ed the source that something didn't print the screen right (or not at all) *AND* most people don't properly comment thier code anyway, I would probably have to write a quick Perl script to figure just what character is "missing". It makes managability more difficult and time-consuming. - Jim | -Warren Block * Rapid City, South Dakota USA | _______________________________________________ | freebsd-questions@freebsd.org mailing list | http://lists.freebsd.org/mailman/listinfo/freebsd-questions | To unsubscribe, send any mail to | "freebsd-questions-unsubscribe@freebsd.org" -- - Jim