bugGNU Core Utilities - Bugs: bug #17956, "sort" manual should...

 
 

You are not allowed to post comments on this tracker with your current authentication level.

bug #17956: "sort" manual should mention that fields are numbered starting from 1

Submitter:  None
Submitted:  Mon 09 Oct 2006 06:33:44 PM UTC
   
 
Category:  None Severity:  3 - Normal
Item Group:  None Status:  Fixed
Privacy:  Public Assigned to:  None
Open/Closed:  Closed

Mon 09 Oct 2006 11:28:31 PM UTC, comment #1: 

The manual page says "origin 1" earlier, under -k, but I guess
you missed it.  I guess it wouldn't hurt to say "origin 1" again,
so I installed this:

2006-10-09  Paul Eggert  <eggert@cs.ucla.edu>

  • src/sort.c (usage): Mention again that sort fields are origin 1.


--- src/sort.c.~1.339.~ 2006-08-08 15:20:12.000000000 -0700
+++ src/sort.c 2006-10-09 16:24:50.000000000 -0700
@@ -337,7 +337,7 @@ Other options:\n\
       fputs (_("\
 \n\
 POS is F[.C][OPTS], where F is the field number and C the character position\n\
-in the field.  If neither the -t nor the -b option is in effect, the characters\n\
+in the field; both are origin 1.  If neither -t nor -b is in effect, characters\n\
 in a field are counted from the beginning of the preceding whitespace.  OPTS is\n\
 one or more single-letter ordering options, which override global ordering\n\
 options for that key.  If no key is given, use the entire line as the key.\n\

Paul Eggert <eggert>
Group administrator
Mon 09 Oct 2006 06:33:44 PM UTC, original submission:  

sort (GNU coreutils) 5.97

The manual I'm looking at says "POS is  F[.C][OPTS], where F is  the field number  and C the character  position  in the  field."

However, it'd be nice if it said "the first field in number 1".

Anonymous

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

CC list is empty

 

There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.

 

Follow 2 latest changes.

Date Changed by Updated Field Previous Value => Replaced by
2006-10-09 eggert StatusNone Fixed
    Open/ClosedOpen Closed

Back to the top

Powered by Savane 3.13-4b48.
Corresponding source code