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

Submitted by:  None
Submitted on:  Mon 09 Oct 2006 06:33:44 PM UTC  
 
Category: NoneSeverity: 3 - Normal
Item Group: NoneStatus: Fixed
Privacy: PublicAssigned 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>
Project 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

 

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

CC list is empty

 

Do you think this task is very important?
If so, you can click here to add your encouragement to it.
This task has 0 encouragements so far.

Only logged-in users can vote.

 

Please enter the title of George Orwell's famous dystopian book (it's a date):

 

 

Follow 2 latest changes.

Date Changed By Updated Field Previous Value => Replaced By
Mon 09 Oct 2006 11:28:31 PM UTCeggertStatusNone=>Fixed
  Open/ClosedOpen=>Closed

Back to the top


Powered by Savane 3.1-cleanup1