This is the mail archive of the
libc-alpha@sources.redhat.com
mailing list for the glibc project.
Re: Fix versions.awk
- From: Momchil Velikov <velco at fadata dot bg>
- To: Roland McGrath <roland at redhat dot com>
- Cc: libc-alpha at sources dot redhat dot com
- Date: 02 Dec 2002 00:00:51 +0200
- Subject: Re: Fix versions.awk
- References: <200211242318.gAONIM428957@magilla.sf.frob.com>
>>>>> "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.