This is the mail archive of the
cygwin@cygwin.com
mailing list for the Cygwin project.
1.3.1: printf bug in awk?
- To: cygwin at cygwin dot com
- Subject: 1.3.1: printf bug in awk?
- From: Morten Nygaard Aasnes <mortenn at imr dot no>
- Date: Wed, 7 Nov 2001 17:53:14 +0100
There seems to be a bug in GNU Awk 3.0.4 comming with Cygwin 1.3.4.
Using printf with precision 0, it fills with zeros instead of spaces.
$ awk 'BEGIN {printf "%10.0f\n",3.14; exit}'
0000000003
--
Morten Nygaard Åsnes
Institute of Marine Research Email: mortenn@imr.no
Postboks 1870 Nordnes Phone: (+47) 55238645
5817 Bergen - Norway (+47) 92869214
--
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
Bug reporting: http://cygwin.com/bugs.html
Documentation: http://cygwin.com/docs.html
FAQ: http://cygwin.com/faq/