From owner-freebsd-bugs@FreeBSD.ORG Fri Apr 16 06:40:02 2010 Return-Path: Delivered-To: freebsd-bugs@hub.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 25A29106564A for ; Fri, 16 Apr 2010 06:40:02 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:4f8:fff6::28]) by mx1.freebsd.org (Postfix) with ESMTP id DF3928FC21 for ; Fri, 16 Apr 2010 06:40:01 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.4/8.14.4) with ESMTP id o3G6e1Wu076032 for ; Fri, 16 Apr 2010 06:40:01 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.4/8.14.4/Submit) id o3G6e1OE076031; Fri, 16 Apr 2010 06:40:01 GMT (envelope-from gnats) Resent-Date: Fri, 16 Apr 2010 06:40:01 GMT Resent-Message-Id: <201004160640.o3G6e1OE076031@freefall.freebsd.org> Resent-From: FreeBSD-gnats-submit@FreeBSD.org (GNATS Filer) Resent-To: freebsd-bugs@FreeBSD.org Resent-Reply-To: FreeBSD-gnats-submit@FreeBSD.org, Garrett Cooper Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id C3D9E106566C for ; Fri, 16 Apr 2010 06:38:44 +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 B44B08FC0C for ; Fri, 16 Apr 2010 06:38:44 +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 o3G6ciMd013736 for ; Fri, 16 Apr 2010 06:38:44 GMT (envelope-from nobody@www.freebsd.org) Received: (from nobody@localhost) by www.freebsd.org (8.14.3/8.14.3/Submit) id o3G6citl013729; Fri, 16 Apr 2010 06:38:44 GMT (envelope-from nobody) Message-Id: <201004160638.o3G6citl013729@www.freebsd.org> Date: Fri, 16 Apr 2010 06:38:44 GMT From: Garrett Cooper To: freebsd-gnats-submit@FreeBSD.org X-Send-Pr-Version: www-3.1 Cc: Subject: bin/145748: hexdump(1) %s format qualifier broken X-BeenThere: freebsd-bugs@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 16 Apr 2010 06:40:02 -0000 >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: