Date: Thu, 4 Apr 2002 23:10:06 -0800 (PST) From: "Simon 'corecode' Schubert" <corecode@corecode.ath.cx> To: freebsd-bugs@FreeBSD.org Subject: Re: i386/36774: The hexdump & od commands doesn't present the input data in the same order among their various formats on the IBM PC Message-ID: <200204050710.g357A6792344@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
The following reply was made to PR i386/36774; it has been noted by GNATS. From: "Simon 'corecode' Schubert" <corecode@corecode.ath.cx> To: Gerald Stoller <Gerald_Stoller@hotmail.com> Cc: freebsd-gnats-submit@FreeBSD.ORG Subject: Re: i386/36774: The hexdump & od commands doesn't present the input data in the same order among their various formats on the IBM PC Date: Fri, 5 Apr 2002 09:04:05 +0200 On Thu, 4 Apr 2002 20:40:45 -0800 (PST) Gerald Stoller <Gerald_Stoller@hotmail.com> wrote: > The hexdump & od commands doesn't present the input data in > the same order among their various formats on the IBM PC (due to the > order-difference between bytes in byte-pairs and shorts [little-endian]). > For hexdump , look at the pipeline > echo -123- | hexdump -cxo > whose output is > 0000000 - 1 2 3 - \n > 0000000 312d 3332 0a2d > 0000000 030455 031462 005055 > 0000006 > and you can see the reversal of the pairs of bytes between the first > three lines, and also that the columns don't line up. i think this is the desired behaviour. indeed this is doing the way as i expect it to do. -- /"\ http://corecode.ath.cx/#donate \ / \ ASCII Ribbon Campaign / \ Against HTML Mail and News To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-bugs" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200204050710.g357A6792344>