Date: Thu, 5 May 2005 10:40:05 GMT From: Giorgos Keramidas <keramida@freebsd.org> To: freebsd-doc@FreeBSD.org Subject: Re: docs/80650: Wrong sed arguments in command for CRLF->LF conversion in porters-handbook Message-ID: <200505051040.j45Ae585090562@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
The following reply was made to PR docs/80650; it has been noted by GNATS. From: Giorgos Keramidas <keramida@freebsd.org> To: Vasil Dimov <vd@datamax.bg> 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 <vd@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.
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200505051040.j45Ae585090562>