bug-gnu-utils
[Top][All Lists]
Advanced

[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: Wed, 25 Mar 2009 11:23:11 -0700
User-agent: Thunderbird 2.0.0.19 (X11/20090105)

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Dave B wrote:
> Andreas Schwab wrote:
> 
>> There is no formatting directive that reqires an argument.  %28b is
>> unknown and %29% is treated the same as %%. 
> 
> Where is that documented?

The "29" is a field-width specification. The % is the conversion
specifier (called the "control letter" in awk's docs).

>>  Perhaps mawk assigns a meaning to %b.

mawk seems to require an argument for both the %b and %29%, but then
does not actually _use_ it if supplied (%29 and % are apparently treated
as separate specifiers, and so require two unused arguments). This
strongly suggests a deficiency in mawk, to me.

> What about the %c at the end?

There is no %c at the end, there is only c (the preceding % is part of
the %29% that has already been explained).

- --
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

iEYEARECAAYFAknKdo8ACgkQ7M8hyUobTrFgQwCfWWel6X/7HB5WAOkJsC0VmVe9
GpgAn0aDhVwYBf9xpM6QfXRTovD4qiNW
=DD3o
-----END PGP SIGNATURE-----




reply via email to

[Prev in Thread] Current Thread [Next in Thread]