msys 1.0.13 gawk problem

Ralf Fassel <[email protected]>
Newsgroups gmane.comp.gnu.mingw.msys
Organization Akustik Technologie Goettingen
Message-ID <[email protected]>
I'm using:
  msysCORE-1.0.13-1-msys-1.0.13-bin.tar.bz2 
  bash-3.1.17-2-msys-1.0.11-bin.tar.bz2 
  gawk-3.1.7-1-msys-1.0.11-bin.tar.bz2 

Extracted in some tmp directory, started msys.bat.

Problem is in gawk with printf, the positional parameters are printed
wrong:

Ok, as expected:
    $ echo -1 2 | gawk '{print $1, $2}'
    -1 2
    $  echo -1 2 | gawk '{printf "%d %d\n", $1, $2}'
    -1 2

Bug: wrong values printed (should be -1 2 in both cases):
    $  echo -1 2 | gawk '{printf "%g %g\n", $1, $2}'
    1 -2

    $  echo -1 2 | gawk '{printf "%f %f\n", $1, $2}'
    1.000000 -2.000000

    $ type gawk
    gawk is hashed (/bin/gawk)

    $ type echo
    echo is a shell builtin

    $ uname -a
    MINGW32_NT-5.1 JAGUAR 1.0.13(0.47/3/2) 2010-01-24 17:47 i686 Msys

    $ gawk --version
    Use -h to see help about each section
    GNU Awk 3.1.7
    Copyright (C) 1989, 1991-2009 Free Software Foundation.

- Same awk version on linux doesn't have this problem.
- Msys 1.0.11 doesn't have this problem.

Can anyone confirm this?

Thanks
R'

------------------------------------------------------------------------------
The Planet: dedicated and managed hosting, cloud storage, colocation
Stay online with enterprise data centers and the best network in the business
Choose flexible plans and management services without long-term contracts
Personal 24x7 support from experience hosting pros just a phone call away.
http://p.sf.net/sfu/theplanet-com
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.