[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]


From: Rob Holbert
Subject: Potential
Date: Mon, 11 Jul 2011 12:31:24 -0400

I ran across perhaps a bug or need for another feature at least. If a list of items has words beginning with both upper and lower case letters, the resulting $(sort $(LIST)) will result in all capital letter words coming before the lower case words. In this case, Zebra.c would appear before apple.c. This is dictated by the ASCII chart of course. However, it is not lexical order as the manual explains the function is. Lexical would be apple.c Zebra.c.
This is solved easily by making the sort comparison convert all alphas to lower case before comparing, leaving the original string case unchanged. 
I like to use sort to put my sources in order. This way it is easier to see if an object file is missing for instance.
Best Regards,

reply via email to

[Prev in Thread] Current Thread [Next in Thread]