summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
Diffstat (limited to 'tests')
-rw-r--r--tests/ChangeLog1
-rwxr-xr-xtests/lang-gawk2
2 files changed, 2 insertions, 1 deletions
diff --git a/tests/ChangeLog b/tests/ChangeLog
index a117c18..a9b91b2 100644
--- a/tests/ChangeLog
+++ b/tests/ChangeLog
@@ -1,5 +1,6 @@
2002-03-07 Bruno Haible <bruno@clisp.org>
+ * lang-gawk: Fix the version recognition, to work with gawk 2.xx.
* lang-tcl: Skip the test if tcl exists but has no msgcat extension.
2002-03-05 Bruno Haible <bruno@clisp.org>
diff --git a/tests/lang-gawk b/tests/lang-gawk
index 536088c..3756db4 100755
--- a/tests/lang-gawk
+++ b/tests/lang-gawk
@@ -84,7 +84,7 @@ ${MSGFMT} -o fr/LC_MESSAGES/prog.mo fr.po
# Test for presence of gawk version 3.1.1 or newer.
(gawk --version) >/dev/null 2>/dev/null \
|| { echo "SKIP: lang-awk"; rm -fr $tmpfiles; exit 77; }
-case `gawk --version | sed -e 's/^[^0-9]*//'` in
+case `gawk --version 2>&1 | sed -e 's/^[^0-9]*//'` in
0.* | 1.* | 2.* | 3.0* | 3.1.0*)
echo "SKIP: lang-awk"; rm -fr $tmpfiles; exit 77;;
esac