Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 5 Jan 2000 17:40:02 -0800 (PST)
From:      Steve Price <sprice@hiwaay.net>
To:        freebsd-bugs@FreeBSD.org
Subject:   Re: alpha/15929: printf(1) truncates if it sees 000
Message-ID:  <200001060140.RAA02272@freefall.freebsd.org>

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

The following reply was made to PR bin/15929; it has been noted by GNATS.

From: Steve Price <sprice@hiwaay.net>
To: Archie Cobbs <archie@whistle.com>
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 "a<NUL>truncated"
 
 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




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