This is the mail archive of the crossgcc@sourceware.org mailing list for the crossgcc project.

See the CrossGCC FAQ for lots more information.


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: local patches feature


%% Robert Schwebel <robert@schwebel.de> writes:

  rs> This is pretty bad, because IMHO the order of the wildcard
  rs> expansion is undefined. For example for LANG=de_DE the output
  rs> order of ls is different than for LANG=C. So you should either
  rs> pipe the patch list through 'sort', to get a well defined
  rs> alphabetic order, or, better, use a series file, to define the
  rs> order _by function_ instead of by name.

Using sort won't help: sort collates based on the locale as well.

All you have to do, though, is force LANG=C in your script before you do
the wildcard.  Presto, well-defined ordering is restored.

-- 
-------------------------------------------------------------------------------
 Paul D. Smith <psmith@nortel.com>           HASMAT--HA Software Mthds & Tools
 "Please remain calm...I may be mad, but I am a professional." --Mad Scientist
-------------------------------------------------------------------------------
        These are my opinions--Nortel takes no responsibility for them.

------
Want more information?  See the CrossGCC FAQ, http://www.objsw.com/CrossGCC/
Want to unsubscribe? Send a note to crossgcc-unsubscribe@sourceware.org


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