Your message dated Fri, 25 Dec 2009 15:17:25 +0000
with message-id <[email protected]>
and subject line Bug#488473: fixed in bsdmainutils 8.0.4
has caused the Debian Bug report #488473,
regarding bsdmainutils: 'hexdump -e' needs command line examples.
to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact [email protected]
immediately.)


-- 
488473: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=488473
Debian Bug Tracking System
Contact [email protected] with problems
--- Begin Message ---
Package: bsdmainutils
Version: 6.1.10
Severity: normal


The 'man hexdump' description of the '-e' option and its format strings
is rather obscure; though there are some examples for the '-f' option, 
there's none for '-e'.  No patch today -- some lively quotes, followed
by some useful '-e' examples.  Readers that don't like complaints
should please skip ahead to the examples.

Disgruntled users:

    Manual on How to Use the Hexdump Unix Utility
 
    Every time I go to use hexdump I find myself stumbling over 
    its bizarre argument format and ineffectual manual. 
    Because I look at binary files often I decided to work up 
    this page more for myself than anyone else....
    http://256.com/gray/docs/misc/hexdump_manual_how_to.html


    Need help with hexdump -e
    Date: 25 Oct 2004 10:45:08 -0700
        
    Can someone tell me where I can find *good* documentation for the
    hexdump command? I've been trying for the past half hour to
    understand the -e format string....
    http://www.dbforums.com/archive/index.php/t-1049742.html


    Incomprehensive Hexdump Man Page

    THE HEXDUMP MAN page, I find, is not the best written example of an
    applications manual. {...} WTF!? Near having a fury induced head
    explosion I resolved to Google. Seems that I'm not the only one having a
    hard time decoding the '-e' description {...} Eventually I found some
    indications that, to get the desired formatting, I should utilize some
    of the non-fprintf formatting options provided by hexdump. More man page
    decoding? No fucking way! Enough of this shit! Having wasted precious
    work time, I abandoned hexdump and put together a little Lua script that
    would do the hex dumping and format the output to fit my requirements. {...}
    http://monzool.net/blog/2008/02/18/incomprehensive-hexdump-man-page/


Examples (with thanks to the folks who wrote the above URLs):

    # hex bytes
    % echo hello | hexdump -v -e '/1 "%02X "' ; echo
    68 65 6C 6C 6F 0A 

    # same, with ASCII section
    % echo hello | hexdump -e '8/1 "%02X ""\t"" "' -e '8/1 "%c""\n"'
    68 65 6C 6C 6F 0A        hello

    # hex with preceding 'x'
    % echo hello | hexdump -v -e '"x" 1/1 "%02X" " "' ; echo
    x68 x65 x6C x6C x6F x0A 

    # one hex byte per line
    % echo hello | hexdump -v -e '/1 "%02X\n"'       
    68
    65
    6C
    6C
    6F
    0A

    # a table of byte#, hex, decimal, octal, ASCII
    % echo hello | hexdump -v  -e '/1  "%_ad#    "'   \
                               -e '/1    "%02X hex"'  \
                               -e '/1 " = %03i dec"'  \
                               -e '/1 " = %03o oct"'  \
                               -e '/1 " = _%c\_\n"'
    0#    68 hex = 104 dec = 150 oct = _h_
    1#    65 hex = 101 dec = 145 oct = _e_
    2#    6C hex = 108 dec = 154 oct = _l_
    3#    6C hex = 108 dec = 154 oct = _l_
    4#    6F hex = 111 dec = 157 oct = _o_
    5#    0A hex = 010 dec = 012 oct = _
    _

    # byte# & ASCII with control chars
    % echo hello | hexdump -v  -e '/1  "%_ad#  "' -e '/1 " _%_u\_\n"'
    0#   _h_
    1#   _e_
    2#   _l_
    3#   _l_
    4#   _o_
    5#   _lf_
    

Hope this helps...


-- System Information:
Debian Release: lenny/sid
  APT prefers unstable
  APT policy: (500, 'unstable')
Architecture: i386 (i686)

Kernel: Linux 2.6.24-1-686 (SMP w/1 CPU core)
Locale: LANG=C, LC_CTYPE=C (charmap=ANSI_X3.4-1968) (ignored: LC_ALL set to C)
Shell: /bin/sh linked to /bin/dash

Versions of packages bsdmainutils depends on:
ii  bsdutils                  1:2.13.1.1-1   Basic utilities from 4.4BSD-Lite
ii  debianutils               2.30           Miscellaneous utilities specific t
ii  libc6                     2.7-12         GNU C Library: Shared libraries
ii  libncurses5               5.6+20080621-2 shared libraries for terminal hand

bsdmainutils recommends no packages.

-- debconf information excluded



--- End Message ---
--- Begin Message ---
Source: bsdmainutils
Source-Version: 8.0.4

We believe that the bug you reported is fixed in the latest version of
bsdmainutils, which is due to be installed in the Debian FTP archive:

bsdmainutils_8.0.4.dsc
  to main/b/bsdmainutils/bsdmainutils_8.0.4.dsc
bsdmainutils_8.0.4.tar.gz
  to main/b/bsdmainutils/bsdmainutils_8.0.4.tar.gz
bsdmainutils_8.0.4_amd64.deb
  to main/b/bsdmainutils/bsdmainutils_8.0.4_amd64.deb



A summary of the changes between this version and the previous one is
attached.

Thank you for reporting the bug, which will now be closed.  If you
have further comments please address them to [email protected],
and the maintainer will reopen the bug report if appropriate.

Debian distribution maintenance software
pp.
Michael Meskes <[email protected]> (supplier of updated bsdmainutils package)

(This message was generated automatically at their request; if you
believe that there is a problem with it please contact the archive
administrators by mailing [email protected])


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Format: 1.8
Date: Fri, 25 Dec 2009 15:11:46 +0100
Source: bsdmainutils
Binary: bsdmainutils
Architecture: source amd64
Version: 8.0.4
Distribution: unstable
Urgency: low
Maintainer: Debian Bsdmainutils Team <[email protected]>
Changed-By: Michael Meskes <[email protected]>
Description: 
 bsdmainutils - collection of more utilities from FreeBSD
Closes: 488473 561612
Changes: 
 bsdmainutils (8.0.4) unstable; urgency=low
 .
   * Fixed Emily Dickinson's name. (Closes: #561612)
   * Added examples for '-e' option to hexdump manpage. (Closes: #488473)
Checksums-Sha1: 
 1b0eecf9995544470e2efcec186204c1cc1e8cf8 989 bsdmainutils_8.0.4.dsc
 3d274182bf07a7b090b8b5534d4bb9f4352acf43 253056 bsdmainutils_8.0.4.tar.gz
 d7ba628ccbc60018f116063ff135e20fdc257531 199558 bsdmainutils_8.0.4_amd64.deb
Checksums-Sha256: 
 8c92351bc537a775f798aecad589ded14b366731e914d54c4aba07c1fe71d34f 989 
bsdmainutils_8.0.4.dsc
 71573f92b6d5867f72e2ad7e420ea0be055d9f769e1582ebc11df49c4c7cde5b 253056 
bsdmainutils_8.0.4.tar.gz
 775c2e0ca2df8cf0f21587bd33b7ae74f67e5d7c91934abf488ba920316a1fde 199558 
bsdmainutils_8.0.4_amd64.deb
Files: 
 493a90aa45a43c7600254bcdd58690f4 989 utils important bsdmainutils_8.0.4.dsc
 53cfc8479c34928c38c71a0a2fe023db 253056 utils important 
bsdmainutils_8.0.4.tar.gz
 2d0a62b1713d1665daeb94afaff64393 199558 utils important 
bsdmainutils_8.0.4_amd64.deb

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.10 (GNU/Linux)

iD8DBQFLNMhTVkEm8inxm9ERAppwAJ9lkUWuQ4JNvrc23eneHPWtbzdcmwCfZ/OV
ZE0mEKxUZ8OhaohtJ1dlAnY=
=7IK8
-----END PGP SIGNATURE-----



--- End Message ---

Reply via email to