| delorie.com/archives/browse.cgi | search |
| Mailing-List: | contact cygwin-help AT sourceware DOT cygnus DOT com; run by ezmlm |
| List-Subscribe: | <mailto:cygwin-subscribe AT sources DOT redhat DOT com> |
| List-Archive: | <http://sources.redhat.com/ml/cygwin/> |
| List-Post: | <mailto:cygwin AT sources DOT redhat DOT com> |
| List-Help: | <mailto:cygwin-help AT sources DOT redhat DOT com>, <http://sources.redhat.com/ml/#faqs> |
| Sender: | cygwin-owner AT sources DOT redhat DOT com |
| Delivered-To: | mailing list cygwin AT sources DOT redhat DOT com |
| Date: | Wed, 7 Nov 2001 17:53:14 +0100 |
| From: | Morten Nygaard Aasnes <mortenn AT imr DOT no> |
| To: | cygwin AT cygwin DOT com |
| Subject: | 1.3.1: printf bug in awk? |
| Message-ID: | <20011107175314.A9363@imr.no> |
| Mime-Version: | 1.0 |
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 AT imr DOT 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/
| webmaster | delorie software privacy |
| Copyright © 2019 by DJ Delorie | Updated Jul 2019 |