This is the mail archive of the cygwin@cygwin.com mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

1.3.1: printf bug in awk?


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/


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]