Date: Wed, 16 Apr 2003 18:44:24 -0800 From: Jim <jconner@enterit.com> To: Warren Block <wblock@wonkity.com>, Christopher Rosado <chris@topher.gintera.net> Cc: freebsd-questions@freebsd.org Subject: Re: [mail_lists] Re: dos2unix??? Message-ID: <200304170145.h3H1jn42001383@quasi.concon.homeip.net> In-Reply-To: <20030416173147.Y23561@wonkity.com> References: <5.2.0.9.2.20030415085340.01bae4a0@mail.servplex.com> <200304152334.26957.chris@topher.gintera.net> <20030416173147.Y23561@wonkity.com>
next in thread | previous in thread | raw e-mail | index | archive | help
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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200304170145.h3H1jn42001383>