From owner-freebsd-bugs Thu Jan 6 9:40: 4 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 D376A15776 for ; Thu, 6 Jan 2000 09:40:01 -0800 (PST) (envelope-from gnats@FreeBSD.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.9.3/8.9.2) id JAA81806; Thu, 6 Jan 2000 09:40:01 -0800 (PST) (envelope-from gnats@FreeBSD.org) Date: Thu, 6 Jan 2000 09:40:01 -0800 (PST) Message-Id: <200001061740.JAA81806@freefall.freebsd.org> To: freebsd-bugs@FreeBSD.org Cc: From: Archie Cobbs Subject: Re: bin/15929: printf(1) truncates if it sees 000 Reply-To: Archie Cobbs 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: Archie Cobbs To: sheldonh@uunet.co.za (Sheldon Hearn) Cc: archie@whistle.com, FreeBSD-gnats-submit@freebsd.org Subject: Re: bin/15929: printf(1) truncates if it sees 000 Date: Thu, 6 Jan 2000 09:33:49 -0800 (PST) Sheldon Hearn writes: > > $ printf 'a\000truncated\n' > > > > This outputs "a" instead of "atruncated" > > What would you expect to happen, given that printf(3) exhibits the same > behaviour? No, I'm not at all surprised. But that's not the point, of course. Either the bug should be fixed or else at least declared 'normal' and so documented in the man page. -Archie ___________________________________________________________________________ Archie Cobbs * Whistle Communications, Inc. * http://www.whistle.com To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-bugs" in the body of the message