From owner-freebsd-bugs Wed Jan 5 17:44:12 2000 Delivered-To: freebsd-bugs@freebsd.org Received: from freefall.freebsd.org (freefall.FreeBSD.ORG [204.216.27.21]) by hub.freebsd.org (Postfix) with ESMTP id 70AA014FB0 for ; Wed, 5 Jan 2000 17:44:11 -0800 (PST) (envelope-from gnats@FreeBSD.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.9.3/8.9.2) id RAA02272; Wed, 5 Jan 2000 17:40:02 -0800 (PST) (envelope-from gnats@FreeBSD.org) Date: Wed, 5 Jan 2000 17:40:02 -0800 (PST) Message-Id: <200001060140.RAA02272@freefall.freebsd.org> To: freebsd-bugs@FreeBSD.org Cc: From: Steve Price Subject: Re: alpha/15929: printf(1) truncates if it sees 000 Reply-To: Steve Price Sender: owner-freebsd-bugs@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org The following reply was made to PR bin/15929; it has been noted by GNATS. From: Steve Price To: Archie Cobbs Cc: FreeBSD-gnats-submit@FreeBSD.ORG Subject: Re: alpha/15929: printf(1) truncates if it sees 000 Date: Wed, 5 Jan 2000 19:36:15 -0600 (CST) On Wed, 5 Jan 2000, Archie Cobbs wrote: # >Number: 15929 # >Category: alpha # >Synopsis: printf(1) truncates if it sees \000 # >Description: # # If '\000' is used in a printf(1) format string, the # string is trunctated at that point # # >How-To-Repeat: # # $ printf 'a\000truncated\n' # # This outputs "a" instead of "atruncated" This really isn't an Alpha-specific problem is it? I just tried it on both i386 and Alpha boxes, and I get the similar results depending on the shell I use. None I tried give the behavior you suggest. Which shell were you using and what does 'which printf' say? Thanks. -steve To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-bugs" in the body of the message