Re: sort command does not deal with blanks correctly
Matthew Woehlke <[email protected]> Thu, 16 Nov 2006 15:53:24 -0600
| Newsgroups | gmane.comp.gnu.core-utils.bugs,gmane.comp.gnu.textutils.bugs |
|---|---|
| Message-ID | <[email protected]> |
[email protected] wrote: > in Solaris, for example (and in perl, etc.) > ae > ac > a l > az > sorts to > a l > ac > ae > az > > which is correct, since the space character is lexigraphically less than any > alphanumeric character > > but gnu sort (linux) seems to ignore the blanks entirely, resulting in > ac > ae > a l > az > > getting a different result is a real pain! > Is there any option that makes 'sort' behave as the man page claims it does? From the man page: > *** WARNING *** The locale specified by the environment affects sort > order. Set LC_ALL=C to get the traditional sort order that uses > native byte values. ...did you try this? -- Matthew "What's Cygwin?" you ask. 'Tis mostly absurd software Concerning hippos.