This is the mail archive of the cygwin mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[OT] Is od broken?


On 2008-06-10, Gary Johnson wrote:

>    $ cat abc.txt
>    This is abc file
> 
>    $ od -t cx1  abc.txt
>    0000000   T   h   i   s       i   s       a   b   c       f   i   l   e
>            54 68 69 73 20 69 73 20 61 62 63 20 66 69 6c 65
>    0000020  \n
>            0a
>    0000021

That looks horrible!  The results are the same on my Red Hat 
Enterprise Linux WS release 4 box, but on both my SunOS 5.8 and 
HP-UX 11.11 machines I see the neatly-aligned outputs I'm used to:

HP-UX:

   <fwcomp1> od -t cx1 abc.txt
   0000000    T   h   i   s       i   s       a   b   c       f   i   l   e
             54  68  69  73  20  69  73  20  61  62  63  20  66  69  6c  65
   0000020   \n
              a
   0000021

SunOS:

   <suncomp3> od -t cx1 abc.txt
   0000000   T   h   i   s       i   s       a   b   c       f   i   l   e
             54  68  69  73  20  69  73  20  61  62  63  20  66  69  6c  65
   0000020  \n
             0a
   0000021


This looks like a defect in the upstream od code for Linux.  Should 
I report it (to bug DASH coreutils AT gnu DOT org), or is this 
misalignment of the character and hex values a new "feature"?

Regards,
Gary


--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:       http://cygwin.com/problems.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]