From owner-freebsd-bugs@FreeBSD.ORG Sun May 1 19:10:12 2011 Return-Path: Delivered-To: freebsd-bugs@hub.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 32360106564A for ; Sun, 1 May 2011 19:10:12 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:4f8:fff6::28]) by mx1.freebsd.org (Postfix) with ESMTP id 228908FC1B for ; Sun, 1 May 2011 19:10:12 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.4/8.14.4) with ESMTP id p41JAB4X056379 for ; Sun, 1 May 2011 19:10:11 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.4/8.14.4/Submit) id p41JABM3056378; Sun, 1 May 2011 19:10:11 GMT (envelope-from gnats) Date: Sun, 1 May 2011 19:10:11 GMT Message-Id: <201105011910.p41JABM3056378@freefall.freebsd.org> To: freebsd-bugs@FreeBSD.org From: Yuri Pankov Cc: Subject: Re: misc/156758: sed utility extrange behavior with s/../& /g command on a .hex file X-BeenThere: freebsd-bugs@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: Yuri Pankov List-Id: Bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 01 May 2011 19:10:12 -0000 The following reply was made to PR misc/156758; it has been noted by GNATS. From: Yuri Pankov To: Federico Cc: bug-followup@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