misc/156758: sed utility extrange behavior with s/../& /g
command on a .hex file
Yuri Pankov
yuri.pankov at gmail.com
Sun May 1 19:10:12 UTC 2011
The following reply was made to PR misc/156758; it has been noted by GNATS.
From: Yuri Pankov <yuri.pankov at gmail.com>
To: Federico <esepecesito at esepecesito.com.ar>
Cc: bug-followup at freebsd.org
Subject: Re: misc/156758: sed utility extrange behavior with s/../& /g
command on a .hex file
Date: Sun, 1 May 2011 22:41:25 +0400
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
More information about the freebsd-bugs
mailing list