Your message dated Tue, 29 Dec 2009 16:32:08 +0000
with message-id <[email protected]>
and subject line Bug#488473: fixed in bsdmainutils 8.0.5
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.5

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.5.dsc
  to main/b/bsdmainutils/bsdmainutils_8.0.5.dsc
bsdmainutils_8.0.5.tar.gz
  to main/b/bsdmainutils/bsdmainutils_8.0.5.tar.gz
bsdmainutils_8.0.5_amd64.deb
  to main/b/bsdmainutils/bsdmainutils_8.0.5_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: Tue, 29 Dec 2009 16:49:37 +0100
Source: bsdmainutils
Binary: bsdmainutils
Architecture: source amd64
Version: 8.0.5
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
Changes: 
 bsdmainutils (8.0.5) unstable; urgency=low
 .
   * Fixed typos in manpage. (Closes: #488473) - thanks to A. Costa
     <[email protected]>
Checksums-Sha1: 
 edce319039138a3ac0955d8ca2bd66362b1a7327 989 bsdmainutils_8.0.5.dsc
 b8de064b28514685edca0c08485c3c318e85c6e2 253108 bsdmainutils_8.0.5.tar.gz
 d0f7628d1bc4bf0310db474c4f414f26291289f8 199606 bsdmainutils_8.0.5_amd64.deb
Checksums-Sha256: 
 f14bac5646715ea3e2b26b9a6255fd239244945ee674c0f7e5294ae6ab510824 989 
bsdmainutils_8.0.5.dsc
 be5b39ecb33e70c24c96564623cd303aa97dab9ae95eb567148ffdf5f6fedded 253108 
bsdmainutils_8.0.5.tar.gz
 4ea38a6dbe0d120f4a2f51e53f1dbc09a9feeaa1c25198c47dd069c74b045cbc 199606 
bsdmainutils_8.0.5_amd64.deb
Files: 
 a3ad3699c3f2ecae75a66bf8b8731bde 989 utils important bsdmainutils_8.0.5.dsc
 62e025ce02bd656ee925809b0d0cf648 253108 utils important 
bsdmainutils_8.0.5.tar.gz
 92d38207793a147fbe9a6d29c089d63a 199606 utils important 
bsdmainutils_8.0.5_amd64.deb

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

iD8DBQFLOicMVkEm8inxm9ERAgNKAJ4+J4EyNX+AdTpmDihkFHHj6U9QfwCeN7cZ
P7peuYcHHornKP4k04PioYM=
=ixwu
-----END PGP SIGNATURE-----



--- End Message ---

Reply via email to