From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 9464 invoked from network); 21 Sep 2001 17:11:23 -0000 Received: from sunsite.dk (130.225.51.30) by ns1.primenet.com.au with SMTP; 21 Sep 2001 17:11:23 -0000 Received: (qmail 5773 invoked by alias); 21 Sep 2001 17:11:18 -0000 Mailing-List: contact zsh-workers-help@sunsite.dk; run by ezmlm Precedence: bulk X-No-Archive: yes X-Seq: 15855 Received: (qmail 5760 invoked from network); 21 Sep 2001 17:11:17 -0000 To: zsh-workers@sunsite.dk (Zsh hackers list) Subject: Re: PATCH: printf builtin In-reply-to: "Oliver Kiddle"'s message of "Fri, 21 Sep 2001 17:13:26 BST." <3BAB6726.3B23E63F@yahoo.co.uk> Date: Fri, 21 Sep 2001 18:10:41 +0100 Message-ID: <9055.1001092241@csr.com> From: Peter Stephenson Oliver Kiddle wrote: > Well, if we do ksh's -f to turn on printf handling it would be easy to > then add another option to force adding a final newline. If it's only optional, there's not really any advantage in an option over an additional "\n" at the end. The point was simply to try to keep normal print behaviour where possible. > > % printf "The answer is %d\x0c" 13 > > The answer is -4265416 > > What platform are you getting that with? I suspect the val union too but > it'd be nice to check. Sorry, it's Solaris, 2.6 to 2.8. I may get round to looking at it on Monday but the combined effect of staring at a screen and the bright lights in our new offices is putting me off at the moment. -- Peter Stephenson Software Engineer CSR Ltd., Science Park, Milton Road, Cambridge, CB4 0WH, UK Tel: +44 (0)1223 392070 ********************************************************************** The information transmitted is intended only for the person or entity to which it is addressed and may contain confidential and/or privileged material. Any review, retransmission, dissemination or other use of, or taking of any action in reliance upon, this information by persons or entities other than the intended recipient is prohibited. If you received this in error, please contact the sender and delete the material from any computer. **********************************************************************