On Thu, Jul 10, 2014 at 05:18:32AM -0600, Ted Unangst wrote: > CVSROOT: /cvs > Module name: src > Changes by: t...@cvs.openbsd.org 2014/07/10 05:18:32 > > Modified files: > usr.bin/cut : cut.1 > > Log message: > add a note that fields are returned in input order. ok deraadt sthen >
that little sentence looks somewhat adrift on its own. much nicer to make it part of the main text. but there's another issue - the man page talks about both columns and fields, while this addition talks only about fields. my fix below. we could also insert it into the first sentence of the page, but it might be more difficult to keep the text simple. ok? jmc Index: cut.1 =================================================================== RCS file: /cvs/src/usr.bin/cut/cut.1,v retrieving revision 1.23 diff -u -r1.23 cut.1 --- cut.1 10 Jul 2014 11:18:32 -0000 1.23 +++ cut.1 10 Jul 2014 12:20:20 -0000 @@ -70,7 +70,8 @@ .Ar list can be in terms of column position or in terms of fields delimited by a special character. -Column and field numbering starts from 1. +Column and field numbering starts from 1; +output is in the same order as input, not in the order selected. .Pp .Ar list is a comma or whitespace separated set of numbers and/or @@ -87,8 +88,6 @@ Numbers and number ranges may be repeated, overlapping, and in any order. It is not an error to select fields or columns not present in the input line. -.Pp -Fields are output in the same order as input, not in the order selected. .Pp The options are as follows: .Bl -tag -width Ds