1.3.1: printf bug in awk?

Morten Nygaard Aasnes mortenn@imr.no
Wed Nov 7 08:53:00 GMT 2001


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/



More information about the Cygwin mailing list