From owner-freebsd-ports Mon Nov 4 16:32:16 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 C670037B401 for ; Mon, 4 Nov 2002 16:32:15 -0800 (PST) Received: from topaz.mdcc.cx (topaz.mdcc.cx [212.204.230.141]) by mx1.FreeBSD.org (Postfix) with ESMTP id 679FB43E3B for ; Mon, 4 Nov 2002 16:32:15 -0800 (PST) (envelope-from edwin@mavetju.org) Received: from k7.mavetju (topaz.mdcc.cx [212.204.230.141]) by topaz.mdcc.cx (Postfix) with ESMTP id 529C32B91C for ; Tue, 5 Nov 2002 01:32:13 +0100 (CET) Received: by k7.mavetju (Postfix, from userid 1001) id 4CEC86A712B; Tue, 5 Nov 2002 11:32:10 +1100 (EST) Date: Tue, 5 Nov 2002 11:32:10 +1100 From: Edwin Groothuis To: ports@freebsd.org Subject: funny REINPLACE_CMD failure for \r Message-ID: <20021105003210.GA92795@k7.mavetju> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.4i 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 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 -- Edwin Groothuis | Personal website: http://www.MavEtJu.org edwin@mavetju.org | Weblog: http://www.mavetju.org/weblog/weblog.php bash$ :(){ :|:&};: | Interested in MUDs? http://www.FatalDimensions.org/ To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-ports" in the body of the message