SVR2 sort(1) documentation bug

Doug Gwyn <gwyn> gwyn at brl-tgr.ARPA
Fri Jan 10 08:35:25 AEST 1986


The "UNIX System V - Release 2.0 User Reference Manual
DEC Processors", 307-109 Issue 2 (April 1984) SORT(1) entry
says "The notation +pos1 -pos2 restricts a sort key to one
beginning at pos1 and ending at pos2.  The characters at
positions pos1 and pos2 are included in the sort key."

This is RONG.  The character at pos2 is not included in
the sort key.  The SVR1 and 8th Edition UNIX manuals have
this right.  I just examined the SVR2 source code to make
sure and ran some test cases.  One wonders why the correct
description was changed.



More information about the Net.bugs.usg mailing list