docs/80650: Wrong sed arguments in command for CRLF->LF conversion in porters-handbook

Giorgos Keramidas keramida at freebsd.org
Thu May 5 10:40:06 UTC 2005


The following reply was made to PR docs/80650; it has been noted by GNATS.

From: Giorgos Keramidas <keramida at freebsd.org>
To: Vasil Dimov <vd at datamax.bg>
Cc: bug-followup at 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 <vd at datamax.bg> 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.
 



More information about the freebsd-doc mailing list