[BACK]Return to sort.1 CVS log [TXT][DIR] Up to [local] / src / usr.bin / sort

Diff for /src/usr.bin/sort/sort.1 between version 1.59 and 1.60

version 1.59, 2019/05/13 17:00:12 version 1.60, 2019/05/15 09:07:46
Line 60 
Line 60 
 A record can contain any printable or unprintable characters.  A record can contain any printable or unprintable characters.
 Comparisons are based on one or more sort keys extracted from  Comparisons are based on one or more sort keys extracted from
 each line of input, and are performed lexicographically,  each line of input, and are performed lexicographically,
 according to the current locale's collating rules and the  according to the specified command-line options
 specified command-line options that can tune the actual  that can tune the actual sorting behavior.
 sorting behavior.  
 By default, if keys are not given,  By default, if keys are not given,
 .Nm  .Nm
 uses entire lines for comparison.  uses entire lines for comparison.
Line 201 
Line 200 
 zeros are ignored in version numbers, see example below).  zeros are ignored in version numbers, see example below).
 If an input string does not match the pattern, then it is compared  If an input string does not match the pattern, then it is compared
 using the byte compare function.  using the byte compare function.
 All string comparisons are performed in the C locale.  
 .Pp  .Pp
 For example:  For example:
 .Bd -literal -offset indent  .Bd -literal -offset indent
Line 494 
Line 492 
 equivalent.  equivalent.
 .Sh ENVIRONMENT  .Sh ENVIRONMENT
 .Bl -tag -width Fl  .Bl -tag -width Fl
 .It Ev LANG  
 Used as a last resort to determine different kinds of locale-specific  
 behavior if neither the respective environment variable nor  
 .Ev LC_ALL  
 are set.  
 .It Ev LC_ALL  
 Locale settings that override all of the other locale settings.  
 This environment variable can be used to set all these settings  
 to the same value at once.  
 .It Ev LC_COLLATE  
 Locale settings to be used to determine the collation for  
 sorting records.  
 .It Ev LC_CTYPE  
 Locale settings to be used to case conversion and classification  
 of characters, that is, which characters are considered  
 whitespaces, etc.  
 .It Ev TMPDIR  .It Ev TMPDIR
 Path to the directory in which temporary files will be stored.  Path to the directory in which temporary files will be stored.
 Note that  Note that
Line 553 
Line 535 
 .Nm  .Nm
 utility is compliant with the  utility is compliant with the
 .St -p1003.1-2008  .St -p1003.1-2008
 specification.  specification, except that it ignores the user's
   .Xr locale 1
   and always assumes
   .Ev LC_ALL Ns =C.
 .Pp  .Pp
 The flags  The flags
 .Op Fl gHhiMRSsTVz  .Op Fl gHhiMRSsTVz
Line 603 
Line 588 
 has no limits on input line length (other than imposed by available  has no limits on input line length (other than imposed by available
 memory) or any restrictions on bytes allowed within lines.  memory) or any restrictions on bytes allowed within lines.
 .Pp  .Pp
 The performance depends highly on locale settings,  The performance depends highly on
 efficient choice of sort keys and key complexity.  efficient choice of sort keys and key complexity.
 The fastest sort is with the C locale, on whole lines, with option  The fastest sort is on whole lines, with option
 .Fl s .  .Fl s .
 In general, the C locale is the fastest, followed by single-byte  
 locales with multi-byte locales being the slowest.  
 The correct collation order respected in all cases.  
 For the key specification, the simpler to process the  For the key specification, the simpler to process the
 lines the faster the search will be.  lines the faster the search will be.
 .Pp  .Pp

Legend:
Removed from v.1.59  
changed lines
  Added in v.1.60