"James Youngman" <[EMAIL PROTECTED]> writes:

> Doesn't the previous code actually produce the _maximum_ version (that
> is, with sort .. | tail -1)?

Yes, and thanks for catching that.  Hmm, nobody has used this since
December 30?  Anyway, I installed this:

2007-01-04  Paul Eggert  <[EMAIL PROTECTED]>

        * gnulib-tool (autoconf_minversion): Take the maximum version number
        found, not the minimum.  Problem reported by James Youngman.

--- gnulib-tool 3 Jan 2007 12:19:04 -0000       1.207
+++ gnulib-tool 4 Jan 2007 18:10:33 -0000
@@ -699,7 +699,7 @@ func_ln_if_changed ()
     if test -n "$prereqs"; then
       autoconf_minversion=`
         for version in $prereqs; do echo $version; done |
-        LC_ALL=C sort -nu | sed 1q
+        LC_ALL=C sort -nru | sed 1q
       `
     fi
   fi


Reply via email to