Description of problem: Awk in fedora core 3 seems to behave oddly. For example it fails to run the tests in ./autogen.sh of cairo's cvs HEAD as of today. I am not really familiar with awk but I hope the reduced testcase in 'steps to reproduce' is enough to help you to fix this bug. I have seen no other system return "0" but fedora core 3. (At least debian stable/unstable, suse and redhat seem to return the correct result, "1"). Version-Release number of selected component (if applicable): GNU Awk 3.1.3 linux 2.6.10-1.760_FC3 How reproducible: Always Steps to Reproduce: 1. echo -ne "2.59\n" | awk 'NR==1 { if( $(NF) >= 2.54) exit 1; exit 0; }'; echo $? Actual results: 0 Expected results: 1 Additional info: The component is of course not "sed" but I don't know how to find out what's the right component for awk. There could be a search form in bugzilla that would accept name of binary and return component name.
Please, check your locale setting if you work with decimal point. Tested with gawk-3.1.4d, gawk-3.1.4 (devel), gawk-3.1.3 (FC-3, RHEL-4), gawk-3.1.0 (RHEL-2.1): $ export LANG=en_US $ echo -ne "2.59\n" | awk 'NR==1 { if( $(NF) >= 2.54) exit 1; exit 0; }'; echo $? 1 $ export LANG=cs_CZ.UTF-8 $ echo -ne "2.59\n" | awk 'NR==1 { if( $(NF) >= 2.54) exit 1; exit 0; }'; echo $? 0
Oh, good point. Seems I need to unset some variables in my ~/.bashrc.