Your message dated Sat, 12 Nov 2005 22:05:06 -0500
with message-id <[EMAIL PROTECTED]>
and subject line printf doesn't treat \c as man page documents
has caused the attached Bug report to be marked as done.
This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.
(NB: If you are a system administrator and have no idea what I am
talking about this indicates a serious mail system misconfiguration
somewhere. Please contact me immediately.)
Debian bug tracking system administrator
(administrator, Debian Bugs database)
--------------------------------------
Received: (at submit) by bugs.debian.org; 1 Oct 2005 01:55:11 +0000
>From [EMAIL PROTECTED] Fri Sep 30 18:55:11 2005
Return-path: <[EMAIL PROTECTED]>
Received: from linear.rut.org (linear.mv.com) [199.125.85.39]
by spohr.debian.org with esmtp (Exim 3.36 1 (Debian))
id 1ELWak-0000jH-00; Fri, 30 Sep 2005 18:55:10 -0700
Received: from robh by linear.mv.com with local (Exim 4.50)
id 1ELWap-0002VQ-0M
for [EMAIL PROTECTED]; Fri, 30 Sep 2005 21:55:15 -0400
Date: Fri, 30 Sep 2005 21:55:14 -0400
To: [EMAIL PROTECTED]
Subject: printf doesn't treat \c as man page documents
Message-ID: <[EMAIL PROTECTED]>
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
User-Agent: Mutt/1.5.9i
From: Robert Henney <[EMAIL PROTECTED]>
Delivered-To: [EMAIL PROTECTED]
X-Spam-Checker-Version: SpamAssassin 2.60-bugs.debian.org_2005_01_02
(1.212-2003-09-23-exp) on spohr.debian.org
X-Spam-Level:
X-Spam-Status: No, hits=-8.0 required=4.0 tests=BAYES_00,HAS_PACKAGE
autolearn=no version=2.60-bugs.debian.org_2005_01_02
Package: coreutils
Version: 5.2.1-2
from man page:
FORMAT controls the output as in C printf. Interpreted sequences are:
[...]
\c produce no further output
but executing
printf "one\n\cword\n"
produces
one
\cword
interestingly, on our freebsd system the man page says the same thing
and their binary isn't acknowledging the \c either. same source?
using libc6 2.3.2.ds1-22
---------------------------------------
Received: (at 331015-done) by bugs.debian.org; 13 Nov 2005 03:05:08 +0000
>From [EMAIL PROTECTED] Sat Nov 12 19:05:08 2005
Return-path: <[EMAIL PROTECTED]>
Received: from vms040pub.verizon.net ([206.46.252.40])
by spohr.debian.org with esmtp (Exim 4.50)
id 1Eb8B2-0005Bo-6F
for [EMAIL PROTECTED]; Sat, 12 Nov 2005 19:05:08 -0800
Received: from osgiliath.mathom.us ([70.108.64.202])
by vms040.mailsrvcs.net (Sun Java System Messaging Server 6.2-4.02 (built Sep
9 2005)) with ESMTPA id <[EMAIL PROTECTED]> for
[EMAIL PROTECTED]; Sat, 12 Nov 2005 21:05:07 -0600 (CST)
Received: from localhost (localhost [127.0.0.1])
by osgiliath.mathom.us (Postfix) with ESMTP id 285C96063FF for
<[EMAIL PROTECTED]>; Sat, 12 Nov 2005 22:05:07 -0500 (EST)
Received: from osgiliath.mathom.us ([127.0.0.1])
by localhost (osgiliath [127.0.0.1]) (amavisd-new, port 10024)
with LMTP id 06256-02 for <[EMAIL PROTECTED]>; Sat,
12 Nov 2005 22:05:07 -0500 (EST)
Received: by osgiliath.mathom.us (Postfix, from userid 1000)
id F12F76001D6; Sat, 12 Nov 2005 22:05:06 -0500 (EST)
Date: Sat, 12 Nov 2005 22:05:06 -0500
From: Michael Stone <[EMAIL PROTECTED]>
Subject: printf doesn't treat \c as man page documents
To: [EMAIL PROTECTED]
Message-id: <[EMAIL PROTECTED]>
MIME-version: 1.0
Content-type: text/plain; charset=us-ascii; format=flowed
Content-disposition: inline
X-Pgp-Fingerprint: 53 FF 38 00 E7 DD 0A 9C 84 52 84 C5 EE DF 7C 88
X-Virus-Scanned: by amavisd-new-20030616-p10 (Debian) at mathom.us
User-Agent: Mutt/1.5.11
X-Spam-Checker-Version: SpamAssassin 2.60-bugs.debian.org_2005_01_02
(1.212-2003-09-23-exp) on spohr.debian.org
X-Spam-Level:
X-Spam-Status: No, hits=-3.0 required=4.0 tests=BAYES_00 autolearn=no
version=2.60-bugs.debian.org_2005_01_02
printf in coreutils 5.2.1-2.1 produces this output:
>/usr/bin/printf "one\n\cword\n"
one
You were probably running:
>printf "one\n\cword\n"
one
\cword
which is the version of printf from your shell rather than from
coreutils. The version of printf in bash handles the case differently,
but also gives the expected output if you use printf "%b" "one\n\cword\n"
Mike Stone
--
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]