Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

Re: PATCH: printf builtin

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 <pws@xxxxxxx>                  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 
If you received this in error, please contact the sender and 
delete the material from any computer.

Messages sorted by: Reverse Date, Date, Thread, Author