jcs's openbsd hax
openbsd

Rewrite the description of how sorting works by default, in particular avoiding the nebulous word "lexicographically" and clarifiying that characters are ordered according to ascii(7). Polish a few nearby wordings for conciseness and readability. OK pascal@ jmc@

+8 -8
+8 -8
usr.bin/sort/sort.1
··· 1 - .\" $OpenBSD: sort.1,v 1.68 2025/03/28 14:35:50 schwarze Exp $ 1 + .\" $OpenBSD: sort.1,v 1.69 2025/04/01 00:18:28 schwarze Exp $ 2 2 .\" 3 3 .\" Copyright (c) 1991, 1993 4 4 .\" The Regents of the University of California. All rights reserved. ··· 32 32 .\" 33 33 .\" @(#)sort.1 8.1 (Berkeley) 6/6/93 34 34 .\" 35 - .Dd $Mdocdate: March 28 2025 $ 35 + .Dd $Mdocdate: April 1 2025 $ 36 36 .Dt SORT 1 37 37 .Os 38 38 .Sh NAME ··· 50 50 .Sh DESCRIPTION 51 51 The 52 52 .Nm 53 - utility sorts text and binary files by lines. 53 + utility sorts the lines of text or binary files. 54 54 A line is a record separated from the subsequent record by a 55 55 newline (default) or NUL 56 56 .Ql \e0 ··· 61 61 .Pc . 62 62 A record can contain any printable or unprintable characters. 63 63 Comparisons are based on one or more sort keys extracted from 64 - each line of input, and are performed lexicographically, 65 - according to the specified command-line options 66 - that can tune the actual sorting behavior. 67 - By default, if keys are not given, 64 + each line according to the specified command line options. 65 + By default, 68 66 .Nm 69 - uses entire lines for comparison. 67 + uses entire lines for comparison and sorts in 68 + .Xr ascii 7 69 + order. 70 70 .Pp 71 71 If no 72 72 .Ar file