[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: might be a bug in gawk
From: |
Micah Cowan |
Subject: |
Re: might be a bug in gawk |
Date: |
Sat, 28 Mar 2009 14:56:59 -0700 |
User-agent: |
Thunderbird 2.0.0.21 (X11/20090318) |
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Aharon Robbins wrote:
>> Note that this comment is documenting that the field width isn't
>> _applied_, not that it isn't accepted, so AFAICT my comments remain
>> appropriate. It's explaining why you didn't get a % right-justified in a
>> 29-width field.
>>
>> But at any rate C99 is not the relevant standard for awk printf
>> behavior; SUS is, and SUS doesn't define it in terms of the C function,
>> but in terms of its own printf-like "format specification"; I don't see
>> any license for field width to be ignored for the % specifier. Arguably,
>> the field width should be applied (but I'm not recommending that change,
>> just noting that it could be more conforming).
>
> I haven't looked at the text of SUS yet. In any case, I don't plan to
> change the current behavior.
Right. I'd more likely treat this as a deficiency in SUS than anything else.
BTW, the relevant text from C99 is ยง7.19.6.1#8:
% A % character is written. No argument is converted. The complete
conversion specification shall be %%.
- --
Micah J. Cowan
Programmer, musician, typesetting enthusiast, gamer.
Maintainer of GNU Wget and GNU Teseq
http://micah.cowan.name/
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
iEYEARECAAYFAknOnSsACgkQ7M8hyUobTrFmegCfY+ef4Q7fACR/elcKtVUsW34O
MPEAn1DtWwrye4fmlO9/G2DWz6Jgasym
=NVKo
-----END PGP SIGNATURE-----
Re: might be a bug in gawk, Jean-Michel ELYN, 2009/03/26
Re: might be a bug in gawk, Pierre Gaston, 2009/03/26
Re: might be a bug in gawk, Aharon Robbins, 2009/03/27
Re: might be a bug in gawk, Aharon Robbins, 2009/03/27
Re: might be a bug in gawk, Aharon Robbins, 2009/03/28
- Re: might be a bug in gawk,
Micah Cowan <=