GNU bug report logs - #14657
od -cx

Previous Next

Package: coreutils;

Reported by: "VANDEMAN, MIKE" <mv2371 <at> att.com>

Date: Tue, 18 Jun 2013 20:01:01 UTC

Severity: normal

Tags: moreinfo, notabug

Merged with 14656

Done: Pádraig Brady <P <at> draigBrady.com>

Bug is archived. No further changes may be made.

To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 14657 in the body.
You can then email your comments to 14657 AT debbugs.gnu.org in the normal way.

Toggle the display of automated, internal messages from the tracker.

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to bug-coreutils <at> gnu.org:
bug#14657; Package coreutils. (Tue, 18 Jun 2013 20:01:01 GMT) Full text and rfc822 format available.

Acknowledgement sent to "VANDEMAN, MIKE" <mv2371 <at> att.com>:
New bug report received and forwarded. Copy sent to bug-coreutils <at> gnu.org. (Tue, 18 Jun 2013 20:01:02 GMT) Full text and rfc822 format available.

Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):

From: "VANDEMAN, MIKE" <mv2371 <at> att.com>
To: "'bug-coreutils <at> gnu.org'" <bug-coreutils <at> gnu.org>
Subject: od -cx
Date: Tue, 18 Jun 2013 20:00:22 +0000
[Message part 1 (text/plain, inline)]
Why aren't the character- & hex translation lined up?:

The character is not above the hex value, making it hard to read:

0000000           -   -   -       V   o   l   u   m   e       g   r   o
        20 20 2d 2d 2d 20 56 6f 6c 75 6d 65 20 67 72 6f

Mike Vandeman
510-204-0643
System Hosting - SSOP 2 Midrange Compression (Working 8:00 am - 4:30 pm PT Mon-Fri)



[Message part 2 (text/html, inline)]

Information forwarded to bug-coreutils <at> gnu.org:
bug#14657; Package coreutils. (Tue, 18 Jun 2013 20:18:01 GMT) Full text and rfc822 format available.

Message #8 received at 14657 <at> debbugs.gnu.org (full text, mbox):

From: Paul Eggert <eggert <at> cs.ucla.edu>
To: "VANDEMAN, MIKE" <mv2371 <at> att.com>
Cc: 14657 <at> debbugs.gnu.org
Subject: Re: bug#14657: od -cx
Date: Tue, 18 Jun 2013 13:17:33 -0700
On 06/18/13 13:00, VANDEMAN, MIKE wrote:
> Why aren't the character- & hex translation lined up?:

It works for me.  When I run this shell script:

echo '      appl' | od -cx

the output is lined up, about as well as it can be:

0000000                           a   p   p   l  \n
           2020    2020    2020    7061    6c70    000a
0000013

If it's not working for you, please supply a test case
like the above.  We can't reproduce the bug simply by
looking at your output.




Information forwarded to bug-coreutils <at> gnu.org:
bug#14657; Package coreutils. (Tue, 18 Jun 2013 20:25:02 GMT) Full text and rfc822 format available.

Message #11 received at 14657 <at> debbugs.gnu.org (full text, mbox):

From: "VANDEMAN, MIKE" <mv2371 <at> att.com>
To: Paul Eggert <eggert <at> cs.ucla.edu>
Cc: "'bug-coreutils <at> gnu.org'" <bug-coreutils <at> gnu.org>,
 "14657 <at> debbugs.gnu.org" <14657 <at> debbugs.gnu.org>
Subject: RE: bug#14657: od -cx
Date: Tue, 18 Jun 2013 20:24:32 +0000
[Message part 1 (text/plain, inline)]
I don't understand "about as well as it can be". It's either aligned, or it isn't. It's not:

[root <at> alpd054 root]# echo '      appl' | od -ctx1
0000000                           a   p   p   l  \n
        20 20 20 20 20 20 61 70 70 6c 0a

-----Original Message-----
From: Paul Eggert [mailto:eggert <at> cs.ucla.edu]
Sent: Tuesday, June 18, 2013 1:18 PM
To: VANDEMAN, MIKE
Cc: 14657 <at> debbugs.gnu.org
Subject: Re: bug#14657: od -cx

On 06/18/13 13:00, VANDEMAN, MIKE wrote:
> Why aren't the character- & hex translation lined up?:

It works for me.  When I run this shell script:

echo '      appl' | od -cx

the output is lined up, about as well as it can be:

0000000                           a   p   p   l  \n
           2020    2020    2020    7061    6c70    000a
0000013

If it's not working for you, please supply a test case
like the above.  We can't reproduce the bug simply by
looking at your output.

[Message part 2 (text/html, inline)]

Information forwarded to bug-coreutils <at> gnu.org:
bug#14657; Package coreutils. (Tue, 18 Jun 2013 20:26:02 GMT) Full text and rfc822 format available.

Information forwarded to bug-coreutils <at> gnu.org:
bug#14657; Package coreutils. (Tue, 18 Jun 2013 20:42:02 GMT) Full text and rfc822 format available.

Message #17 received at 14657 <at> debbugs.gnu.org (full text, mbox):

From: Paul Eggert <eggert <at> cs.ucla.edu>
To: "VANDEMAN, MIKE" <mv2371 <at> att.com>
Cc: 14657 <at> debbugs.gnu.org
Subject: Re: bug#14657: od -cx
Date: Tue, 18 Jun 2013 13:41:40 -0700
On 06/18/13 13:24, VANDEMAN, MIKE wrote:
> It's either aligned, or it isn't. It's not:

But it is aligned, for me.  Most likely you have an old
implementation of od, or an implementation that's not coreutils.

Here's what I get:

$ echo '      appl' | od -ctx1
0000000                           a   p   p   l  \n
         20  20  20  20  20  20  61  70  70  6c  0a
0000013
$ od --version
od (GNU coreutils) 8.21
Copyright (C) 2013 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>.
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.

Written by Jim Meyering.





Information forwarded to bug-coreutils <at> gnu.org:
bug#14657; Package coreutils. (Tue, 18 Jun 2013 22:05:01 GMT) Full text and rfc822 format available.

Message #20 received at 14657 <at> debbugs.gnu.org (full text, mbox):

From: Pádraig Brady <P <at> draigBrady.com>
To: Paul Eggert <eggert <at> cs.ucla.edu>
Cc: 14657 <at> debbugs.gnu.org, "VANDEMAN, MIKE" <mv2371 <at> att.com>
Subject: Re: bug#14657: od -cx
Date: Tue, 18 Jun 2013 23:04:24 +0100
forcemerge 14657 14656
tag 14656 notabug
close 14656
stop

On 06/18/2013 09:41 PM, Paul Eggert wrote:
> On 06/18/13 13:24, VANDEMAN, MIKE wrote:
>> It's either aligned, or it isn't. It's not:
> 
> But it is aligned, for me.  Most likely you have an old
> implementation of od, or an implementation that's not coreutils.
> 
> Here's what I get:
> 
> $ echo '      appl' | od -ctx1
> 0000000                           a   p   p   l  \n
>          20  20  20  20  20  20  61  70  70  6c  0a

As a side note I notice that solaris and bsd align
to the start of the digits, rather than to the end.
Anyway....

> 0000013
> $ od --version
> od (GNU coreutils) 8.21
> Copyright (C) 2013 Free Software Foundation, Inc.
> License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>.
> This is free software: you are free to change and redistribute it.
> There is NO WARRANTY, to the extent permitted by law.
> 
> Written by Jim Meyering.

I was able to reproduce this on 5.97:

$ head -n1 /etc/issue
Red Hat Enterprise Linux Server release 5.9 (Tikanga)

$ /usr/bin/od --version | head -n1
od (GNU coreutils) 5.97

$ echo '      appl' | /usr/bin/od -ctx1
0000000                           a   p   p   l  \n
        20 20 20 20 20 20 61 70 70 6c 0a
0000013

Anyway this is already fixed, I suspect by something like:
http://git.sv.gnu.org/gitweb/?p=coreutils.git;a=commit;h=20c0b870

thanks,
Pádraig.




Forcibly Merged 14656 14657. Request was from Pádraig Brady <P <at> draigBrady.com> to control <at> debbugs.gnu.org. (Tue, 18 Jun 2013 22:05:02 GMT) Full text and rfc822 format available.

Added tag(s) notabug. Request was from Pádraig Brady <P <at> draigBrady.com> to control <at> debbugs.gnu.org. (Tue, 18 Jun 2013 22:05:03 GMT) Full text and rfc822 format available.

bug closed, send any further explanations to 14656 <at> debbugs.gnu.org and "VANDEMAN, MIKE" <mv2371 <at> att.com> Request was from Pádraig Brady <P <at> draigBrady.com> to control <at> debbugs.gnu.org. (Tue, 18 Jun 2013 22:05:03 GMT) Full text and rfc822 format available.

bug archived. Request was from Debbugs Internal Request <help-debbugs <at> gnu.org> to internal_control <at> debbugs.gnu.org. (Wed, 17 Jul 2013 11:24:05 GMT) Full text and rfc822 format available.

This bug report was last modified 11 years and 343 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.