From nobody@FreeBSD.org  Wed Apr 14 13:20:34 2010
Return-Path: <nobody@FreeBSD.org>
Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34])
	by hub.freebsd.org (Postfix) with ESMTP id 05217106564A
	for <freebsd-gnats-submit@FreeBSD.org>; Wed, 14 Apr 2010 13:20:34 +0000 (UTC)
	(envelope-from nobody@FreeBSD.org)
Received: from www.freebsd.org (www.freebsd.org [IPv6:2001:4f8:fff6::21])
	by mx1.freebsd.org (Postfix) with ESMTP id E893E8FC24
	for <freebsd-gnats-submit@FreeBSD.org>; Wed, 14 Apr 2010 13:20:33 +0000 (UTC)
Received: from www.freebsd.org (localhost [127.0.0.1])
	by www.freebsd.org (8.14.3/8.14.3) with ESMTP id o3EDKXR0064670
	for <freebsd-gnats-submit@FreeBSD.org>; Wed, 14 Apr 2010 13:20:33 GMT
	(envelope-from nobody@www.freebsd.org)
Received: (from nobody@localhost)
	by www.freebsd.org (8.14.3/8.14.3/Submit) id o3EDKX1v064669;
	Wed, 14 Apr 2010 13:20:33 GMT
	(envelope-from nobody)
Message-Id: <201004141320.o3EDKX1v064669@www.freebsd.org>
Date: Wed, 14 Apr 2010 13:20:33 GMT
From: Garrett Cooper <yaneurabeya@gmail.com>
To: freebsd-gnats-submit@FreeBSD.org
Subject: hexdump(1) mutes all format qualifier output following a %_Ax declaration
X-Send-Pr-Version: www-3.1
X-GNATS-Notify:

>Number:         145699
>Category:       docs
>Synopsis:       hexdump(1) mutes all format qualifier output following a %_Ax declaration
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-doc
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Wed Apr 14 13:30:01 UTC 2010
>Closed-Date:    
>Last-Modified:  Sun Feb 03 22:28:38 UTC 2013
>Originator:     Garrett Cooper
>Release:        9-CURRENT
>Organization:
Cisco Systems, Inc.
>Environment:
FreeBSD bayonetta.local 9.0-CURRENT FreeBSD 9.0-CURRENT #4 r206173M: Mon Apr 12 07:16:16 PDT 2010     root@bayonetta.local:/usr/obj/usr/src/sys/BAYONETTA  amd64
>Description:
The problem with the %_A qualifier is that it doesn't match the expectations delivered in the documentation don't reflect reality: 

$ echo -n "$(jot -b a 8193)" | hexdump -v -e '"%07.7_Ax\n" /1 "%s"'
0004001

I would expect 8193 "a"s to be printed, like so:

$ echo -n "$(jot -b a 8193)" | hexdump -v -e '"%07.7_Ax\n" /1 "%s"'
# ...
a
a
a
a
a
a
a
a
a
a
a
a
0004001
$

Obviously %_A isn't being evaluated at the end and is being evaluated in order of the expressions which are defined on the command line // in a file. Thus the example in the manpage is broken :(...
>How-To-Repeat:
echo "$(jot -b a 8193)" | ./hexdump -v -e '"%.7_Ax\n" /1 "%s"'
>Fix:


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