From owner-freebsd-ports Wed Nov 6 5:23:49 2002 Delivered-To: freebsd-ports@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id F410B37B401; Wed, 6 Nov 2002 05:23:47 -0800 (PST) Received: from mail.dt.e-technik.uni-dortmund.de (krusty.dt.E-Technik.Uni-Dortmund.DE [129.217.163.1]) by mx1.FreeBSD.org (Postfix) with ESMTP id 1C5FD43E7B; Wed, 6 Nov 2002 05:23:47 -0800 (PST) (envelope-from ma@dt.e-technik.uni-dortmund.de) Received: from m2a2.yi.org (krusty.dt.e-technik.uni-dortmund.de [129.217.163.1]) by mail.dt.e-technik.uni-dortmund.de (Postfix) with ESMTP id 06CC6A3831; Wed, 6 Nov 2002 14:23:44 +0100 (CET) Received: by merlin.emma.line.org (Postfix, from userid 500) id A6C3558662; Wed, 6 Nov 2002 14:23:40 +0100 (CET) To: Adam Weinberger Cc: Edwin Groothuis , ports@FreeBSD.ORG Subject: Re: funny REINPLACE_CMD failure for \r References: <20021105003210.GA92795@k7.mavetju> <20021105013354.GA197@vectors.cx> In-Reply-To: <20021105013354.GA197@vectors.cx> (Adam Weinberger's message of "Mon, 4 Nov 2002 17:33:54 -0800") From: Matthias Andree Date: Wed, 06 Nov 2002 14:23:40 +0100 Message-ID: User-Agent: Gnus/5.090008 (Oort Gnus v0.08) Emacs/21.1 (i686-pc-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Sender: owner-freebsd-ports@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org Adam Weinberger writes: >>> (11.04.2002 @ 1632 PST): Edwin Groothuis said, in 0.7K: << >> Greetings, >> >> It seems that REINPLACE_CMD doesn't know how to handle \r's in the >> expression, "-e 's!\r!!'" fails all the time for me (no matter how >> much \'s I add to it :-). Right now I just replace these by >> "${TR} -d '\015' < file > file.new; {$MV} file.new file" >> but I was wondering if somebody has a better solution for it. >> >> Edwin >>> end of "funny REINPLACE_CMD failure for \r" from Edwin Groothuis << > > Does ^V^M not work? Are you confident the next editor (not vim or nvi though ;-) will keep the binary CR character? I'm not. And it's at best ugly. (One can see horses puke in front of pharmacies, as a German saying goes.) -- Matthias Andree To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-ports" in the body of the message