Further discussion with Aharon Robbins and Mike Brennan brought forth this information:
a) X/Open awk uses standard printf formatting, which does not produce leading 0's. b) platforms which produce leading 0's (Solaris, AIX, HPUX, IRIX64) do this as a legacy (pre-standardization) feature. c) if mawk was built on such a platform, it would have produced leading 0's, built on other platforms it did not. d) Aharon Robbins changed gawk to no longer produce leading 0's. So I modified mawk to explicitly not produce leading 0's, for consistent and conformance with the standard. That change is in the 20090820 snapshot here: ftp://invisible-island.net/mawk/ -- Thomas E. Dickey <dic...@invisible-island.net> http://invisible-island.net ftp://invisible-island.net
signature.asc
Description: Digital signature