[GRASS5] Mawk vs Gawk?

Paolo Cavallini cavallini at faunalia.it
Sun Oct 3 04:34:50 EDT 2004


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

What is the state of the same module in grass57?
pc

At 10:24, domenica 03 ottobre 2004, Glynn Clements has probably written:
> Hamish wrote:
> > I've just noticed that (debian/testing's) mawk doesn't work with 5.3's
> > v.in.garmin.sh. Specifically, it doesn't like "%lf"s.
> >
> > Should the script be changed to "%f"s or should mawk be unsupported?
>
> Changed.
>
> > bug or feature? The mawk man page states %lf should be supported.
>
> Bug in v.in.garmin.sh; it's relying unnecessarily upon a gawk
> extension.
>
> The Info file for gawk 3.0.4 says:
>
>      C programmers may be used to supplying additional `l' and `h' flags
>   in `printf' format strings. These are not valid in `awk'.  Most `awk'
>   implementations silently ignore these flags.  If `--lint' is provided
>   on the command line (*note Command Line Options: Options.), `gawk' will
>   warn about their use. If `--posix' is supplied, their use is a fatal
>   error.

- -- 
Paolo Cavallini
cavallini at faunalia.it            www.faunalia.it
Piazza Garibaldi 5 - 56025 Pontedera (PI), Italy   Tel: (+39)348-3801953
GPG key @: hkp://wwwkeys.pgp.net http://www.pgp.net/wwwkeys.html 
https://www.biglumber.com
Only free software: www.gnu.org / www.linux.org
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.4 (GNU/Linux)

iD8DBQFBX7mr/NedwLUzIr4RAlP0AKCP/H7abtps2I9qgWfMHrAcoGruGQCfdunI
qRYsZu0Jda9VEJIUjV2B0OI=
=y3Zf
-----END PGP SIGNATURE-----




More information about the grass-dev mailing list