misc/156758: sed utility extrange behavior with s/../& /g command on a .hex file

Federico Sanchez Pinzon esepecesito at esepecesito.com.ar
Mon May 2 04:20:08 UTC 2011


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

From: Federico Sanchez Pinzon <esepecesito at esepecesito.com.ar>
To: Yuri Pankov <yuri.pankov at gmail.com>
Cc: bug-followup at 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 at 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 &#39=
 ;tr&#39; 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">&lt;<=
 a href=3D"mailto:yuri.pankov at gmail.com">yuri.pankov at gmail.com</a>&gt;</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&#39;t reproduce it on 8.2 with either sed or gsed:<br>
 <br>
 $ /usr/bin/sed -e &#39;s/../&amp; /g&#39; 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 &#39;s/../&amp; /g&#39; 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--


More information about the freebsd-bugs mailing list