Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 16 Apr 2010 06:38:44 GMT
From:      Garrett Cooper <gcooper@FreeBSD.org>
To:        freebsd-gnats-submit@FreeBSD.org
Subject:   bin/145748: hexdump(1) %s format qualifier broken
Message-ID:  <201004160638.o3G6citl013729@www.freebsd.org>
Resent-Message-ID: <201004160640.o3G6e1OE076031@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help

>Number:         145748
>Category:       bin
>Synopsis:       hexdump(1) %s format qualifier broken
>Confidential:   no
>Severity:       non-critical
>Priority:       high
>Responsible:    freebsd-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Fri Apr 16 06:40:00 UTC 2010
>Closed-Date:
>Last-Modified:
>Originator:     Garrett Cooper
>Release:        9-CURRENT
>Organization:
Cisco Systems, Inc.
>Environment:
>Description:
According to the manpage...

           o   A byte count or field precision is required for each ``s'' con-
               version character (unlike the fprintf(3) default which prints
               the entire string if the precision is unspecified).

.. this should just work. It doesn't however:

$ echo "$(jot -b a 1024)" | hexdump  -e '"%4s\n"'
hexdump: %s: requires a precision or a byte count
>How-To-Repeat:
echo "$(jot -b a 1024)" | hexdump  -e '"%4s\n"'
>Fix:


>Release-Note:
>Audit-Trail:
>Unformatted:



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201004160638.o3G6citl013729>