This is the mail archive of the libc-alpha@sources.redhat.com mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Fix versions.awk


>>>>> "Roland" == Roland McGrath <roland@redhat.com> writes:

    Roland> You haven't shown a failure mode.  The temporary is
    Roland> written with a pipe to sort -n (see the BEGIN clause), so
    Roland> sorting when reading it makes no sense.

Indeed. Apparently the BSD sort(1), when given ``-n'' option does not
sort the file at all, if lines do not begin with

        "An initial numeric string, consisting of optional blank
         space, optional minus sign, and zero or more digits (includ-
         ing decimal point)"

~velco
2002-12-01  Momchil Velikov  <velco@fadata.bg>

	* scripts/versions.awk: Do not use ``-n'' when sorting the
	temporary file.

--- src/repos/libc/tags/cvs-20021126/scripts/versions.awk	Tue Nov 26 00:54:21 2002
+++ libc/scripts/versions.awk	Sun Dec  1 21:24:01 2002
@@ -26,7 +26,7 @@ BEGIN {
   close(defsfile);
 
   tmpfile = buildroot "Versions.tmp";
-  sort = "sort -n > " tmpfile;
+  sort = "sort > " tmpfile;
 }
 
 # Remove comment lines.

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]