delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2008/06/10/19:43:12

X-Recipient: archive-cygwin AT delorie DOT com
X-Spam-Check-By: sourceware.org
Date: Tue, 10 Jun 2008 16:42:44 -0700
From: Gary Johnson <garyjohn AT spk DOT agilent DOT com>
To: cygwin AT cygwin DOT com
Subject: [OT] Is od broken?
Message-ID: <20080610234243.GC18434@suncomp1.spk.agilent.com>
Mail-Followup-To: cygwin AT cygwin DOT com
References: <17764646 DOT post AT talk DOT nabble DOT com> <484EFB14 DOT 65C9E56F AT dessent DOT net> <17766865 DOT post AT talk DOT nabble DOT com> <20080610233030 DOT GB18434 AT suncomp1 DOT spk DOT agilent DOT com>
MIME-Version: 1.0
In-Reply-To: <20080610233030.GB18434@suncomp1.spk.agilent.com>
X-Operating-System: SunOS suncomp1 5.8 sparc
User-Agent: Mutt/1.5.17 (2007-11-01)
X-IsSubscribed: yes
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Unsubscribe: <mailto:cygwin-unsubscribe-archive-cygwin=delorie DOT com AT cygwin DOT com>
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com

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/

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019