From owner-freebsd-doc@FreeBSD.ORG Thu May 5 10:40:06 2005 Return-Path: Delivered-To: freebsd-doc@hub.freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 2501016A4CE for ; Thu, 5 May 2005 10:40:06 +0000 (GMT) Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id F3B4E43D1F for ; Thu, 5 May 2005 10:40:05 +0000 (GMT) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.13.3/8.13.3) with ESMTP id j45Ae5RD090563 for ; Thu, 5 May 2005 10:40:05 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.13.3/8.13.1/Submit) id j45Ae585090562; Thu, 5 May 2005 10:40:05 GMT (envelope-from gnats) Date: Thu, 5 May 2005 10:40:05 GMT Message-Id: <200505051040.j45Ae585090562@freefall.freebsd.org> To: freebsd-doc@FreeBSD.org From: Giorgos Keramidas Subject: Re: docs/80650: Wrong sed arguments in command for CRLF->LF conversion in porters-handbook X-BeenThere: freebsd-doc@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list Reply-To: Giorgos Keramidas List-Id: Documentation project List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 05 May 2005 10:40:06 -0000 The following reply was made to PR docs/80650; it has been noted by GNATS. From: Giorgos Keramidas To: Vasil Dimov Cc: bug-followup@freebsd.org Subject: Re: docs/80650: Wrong sed arguments in command for CRLF->LF conversion in porters-handbook Date: Thu, 5 May 2005 13:37:40 +0300 On 2005-05-05 13:18, Vasil Dimov wrote: > I forgot to mention that the command does not convert line endings > if used without -E It works fine here: # echo -e 'foo\015' | cat -vte foo^M$ # echo -e 'foo\015' | sed -e 's/[[:cntrl:]]*$//' | cat -vte foo$ # Pleae note that the example in the porters-handbook is meant to be a Makefile snippet, so the dollar (`$') character is doubled (because of the way make(1) handles dollar signs in makefiles). If you test this on a shell's command line, replace '$$' with '$' in the regexp, as I did above.