Date: Mon, 2 May 2011 04:20:07 GMT From: Federico Sanchez Pinzon <esepecesito@esepecesito.com.ar> To: freebsd-bugs@FreeBSD.org Subject: Re: misc/156758: sed utility extrange behavior with s/../& /g command on a .hex file Message-ID: <201105020420.p424K7Ve055683@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
The following reply was made to PR bin/156758; it has been noted by GNATS. From: Federico Sanchez Pinzon <esepecesito@esepecesito.com.ar> To: Yuri Pankov <yuri.pankov@gmail.com> Cc: bug-followup@freebsd.org Subject: Re: misc/156758: sed utility extrange behavior with s/../& /g command on a .hex file Date: Mon, 2 May 2011 00:52:32 -0300 --20cf303f6a5600eb5f04a242f4b2 Content-Type: text/plain; charset=ISO-8859-1 SORRY! I think it was my mistake :( there was a \r that I was not expecting in the output of a GNU utility (obj-dump) Striping the \r with 'tr' solved the issue. Thks anyway, and sorry for wasting your time. 2011/5/1 Yuri Pankov <yuri.pankov@gmail.com> > Can't reproduce it on 8.2 with either sed or gsed: > > $ /usr/bin/sed -e 's/../& /g' test > :1 00 00 00 01 8F 09 FE 51 8F 09 FE 51 8F 09 FE 51 8F 09 FE 5C 0 > :1 00 01 00 01 8F 09 FE 50 00 0A 0E 1F 0F F1 FE 51 4F 09 FE 55 8 > $ /usr/local/bin/gsed -e 's/../& /g' test > :1 00 00 00 01 8F 09 FE 51 8F 09 FE 51 8F 09 FE 51 8F 09 FE 5C 0 > :1 00 01 00 01 8F 09 FE 50 00 0A 0E 1F 0F F1 FE 51 4F 09 FE 55 8 > > Probably something is stripping : at the start of the line in your > environment? > > > Yuri > --20cf303f6a5600eb5f04a242f4b2 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable SORRY!<br>I think it was my mistake :( there was a \r that I was not expect= ing in the output of a GNU utility (obj-dump) <br>Striping the \r with '= ;tr' solved the issue. Thks anyway, and sorry for wasting your time.<br= > <br><div class=3D"gmail_quote">2011/5/1 Yuri Pankov <span dir=3D"ltr"><<= a href=3D"mailto:yuri.pankov@gmail.com">yuri.pankov@gmail.com</a>></span= ><br><blockquote class=3D"gmail_quote" style=3D"margin: 0pt 0pt 0pt 0.8ex; = border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;"> Can't reproduce it on 8.2 with either sed or gsed:<br> <br> $ /usr/bin/sed -e 's/../& /g' test<br> :1 00 00 00 01 8F 09 FE 51 8F 09 FE 51 8F 09 FE 51 8F 09 FE 5C 0<br> :1 00 01 00 01 8F 09 FE 50 00 0A 0E 1F 0F F1 FE 51 4F 09 FE 55 8<br> $ /usr/local/bin/gsed -e 's/../& /g' test<br> :1 00 00 00 01 8F 09 FE 51 8F 09 FE 51 8F 09 FE 51 8F 09 FE 5C 0<br> :1 00 01 00 01 8F 09 FE 50 00 0A 0E 1F 0F F1 FE 51 4F 09 FE 55 8<br> <br> Probably something is stripping : at the start of the line in your<br> environment?<br> <font color=3D"#888888"><br> <br> Yuri<br> </font></blockquote></div><br> --20cf303f6a5600eb5f04a242f4b2--
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201105020420.p424K7Ve055683>