summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authormillert <millert@openbsd.org>2015-04-05 14:20:22 +0000
committermillert <millert@openbsd.org>2015-04-05 14:20:22 +0000
commita6e32a4c6e2d49ec8477ece1a38406d814308055 (patch)
treee59d9563a957478042a5e2c2b79f9bb0340a4027
parentFor the -g flag, treat non-floating point keys as 0, similar to -n. (diff)
downloadwireguard-openbsd-a6e32a4c6e2d49ec8477ece1a38406d814308055.tar.xz
wireguard-openbsd-a6e32a4c6e2d49ec8477ece1a38406d814308055.zip
Document that some sorts uses -b w/o key fields.
-rw-r--r--usr.bin/sort/sort.113
1 files changed, 12 insertions, 1 deletions
diff --git a/usr.bin/sort/sort.1 b/usr.bin/sort/sort.1
index 7d927290254..c1c9f21e89f 100644
--- a/usr.bin/sort/sort.1
+++ b/usr.bin/sort/sort.1
@@ -1,4 +1,4 @@
-.\" $OpenBSD: sort.1,v 1.53 2015/04/05 13:56:04 millert Exp $
+.\" $OpenBSD: sort.1,v 1.54 2015/04/05 14:20:22 millert Exp $
.\"
.\" Copyright (c) 1991, 1993
.\" The Regents of the University of California. All rights reserved.
@@ -585,6 +585,17 @@ Some are provided for compatibility with GNU
.Nm ,
others are specific to this implementation.
.Pp
+Some implementations of
+.Nm
+honor the
+.Fl b
+option even when no key fields are specified.
+This implementation follows historic practice and
+.St -p1003.1-2008
+in only honoring
+.Fl b
+when it precedes a key field.
+.Pp
The historic practice of allowing the
.Fl o
option to appear after the