From shigio@wafu.netgate.net  Thu Jun 19 23:02:16 1997
Received: from wafu.netgate.net (wafu.netgate.net [204.145.147.80])
          by hub.freebsd.org (8.8.5/8.8.5) with ESMTP id XAA13629
          for <FreeBSD-gnats-submit@freebsd.org>; Thu, 19 Jun 1997 23:02:14 -0700 (PDT)
Received: from chiota.signet.or.jp (INS9.tama.dtinet.or.jp [203.181.77.9]) by wafu.netgate.net (8.7.5/8.7.3) with ESMTP id WAA10614; Thu, 19 Jun 1997 22:06:00 GMT
Received: (from shigio@localhost) by chiota.signet.or.jp (8.8.5/) id PAA01044; Fri, 20 Jun 1997 15:01:25 +0900 (JST)
Message-Id: <199706192206.WAA10614@wafu.netgate.net>
Date: Fri, 20 Jun 1997 15:01:25 +0900 (JST)
From: shigio@wafu.netgate.net
Reply-To: shigio@wafu.netgate.net
To: FreeBSD-gnats-submit@freebsd.org
Cc: shigio@wafu.netgate.net
Subject: sort(1) of 2.2.1R doesn't work correctly.
X-Send-Pr-Version: 3.2

>Number:         3910
>Category:       gnu
>Synopsis:       sort(1) of 2.2.1R doesn't work in special case.
>Confidential:   no
>Severity:       serious
>Priority:       high
>Responsible:    freebsd-bugs
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Thu Jun 19 23:10:00 PDT 1997
>Closed-Date:    Mon Mar 6 07:27:16 PST 2000
>Last-Modified:  Mon Mar  6 07:28:11 PST 2000
>Originator:     Shigio Yamaguchi
>Release:        FreeBSD 2.2.1-RELEASE i386
>Organization:
Freelance programmer
>Environment:

	All environment

>Description:

	Sort(1) is effected by blanks around skipped column.

	For example, 

	% cat | sort +0b -1 +2b -3
	A A B
	A  A A
	^D

	should be sorted as follows.

	A  A A
	A A B

	But the result is this.

	A A B
	A  A A

	If you make these columns even like this, it works well.

	A A B
	A A A

	(Sort(1) of FreeBSD 2.1.5R works well.)

>How-To-Repeat:

	% cat | sort +0b -1 +2b -3
	A A B
	A  A A
	^D
	A A B
	A  A A

>Fix:

	I don't know.
>Release-Note:
>Audit-Trail:

From: Shigio Yamaguchi <shigio@tamacom.com>
To: freebsd-gnats-submit@FreeBSD.org
Cc: shigio@tamacom.com
Subject: Re: gnu/3910: sort(1) of 2.2.1R doesn't work in special case.
Date: Tue, 07 Mar 2000 00:13:18 +0900

 I have recept following mail.
 I think this problem report should be closed.
 
 > To: Shigio Yamaguchi <shigio@tamacom.com>
 > Cc: bug-textutils@gnu.org
 > Subject: Re: Sort bug in textutils-2.0.tar.gz
 > References: <200003051039.TAA06100@tamacom.com>
 > From: Jim Meyering <meyering@ascend.com>
 > In-Reply-To: Shigio Yamaguchi's message of "Sun, 05 Mar 2000 19:39:09 +0900"
 > Date: 05 Mar 2000 22:33:28 +0100
 > Message-ID: <uryln3x5cgn.fsf@ixi.eng.ascend.com>
 > Lines: 47
 > User-Agent: Gnus/5.0803 (Gnus v5.8.3) Emacs/20.6
 > MIME-Version: 1.0
 > Content-Type: text/plain; charset=us-ascii
 > X-UIDL: 85b274d4a26a8d73ba0502cb31cf0249
 > 
 > Thanks for the report.
 > I believe this is not a bug in sort.
 > 
 > This misunderstanding may be due to a weakness in the documentation.
 > The way sort's -b modifier works is different from the way any of the other
 > modifiers work in that it means different things when applied to the
 > field-start than when applied to the field-end part of the key specifier.
 > Or perhaps it's due to the ambiguity of whether those blanks are at the
 > end of the first field or at the beginning of the second one.
 > 
 > To get the behavior you want, either apply `b' to the field-end
 > specifier of the first key,
 > 
 >          % sort +0b -1b +2b -3
 > 
 > or simply use the global -b option:
 > 
 >          % sort -b +0 -1 +2 -3
 > 
 > Shigio Yamaguchi <shigio@tamacom.com> writes:
 > | Hello,
 > |
 > | I think I have found a bug in sort.
 > |
 > | Sort(1) is effected by blanks around skipped column.
 > |
 > | For example,
 > |
 > |         % sort +0b -1 +2b -3
 > |         A A B
 > |         A  A A
 > |         ^D
 > |
 > | should be sorted as follows.
 > |
 > |         A  A A
 > |         A A B
 > |
 > | But the result is this.
 > |
 > |         A A B
 > |         A  A A
 > |
 > | If you make these columns even like this, it works well.
 > |
 > |         A A B
 > |         A A A
 --
 Shigio Yamaguchi - Tama Communications Corporation
 Mail: shigio@tamacom.com, Spare mail: shigio@pluto.dti.ne.jp
 WWW: http://www.tamacom.com
 
State-Changed-From-To: open->closed 
State-Changed-By: sheldonh 
State-Changed-When: Mon Mar 6 07:27:16 PST 2000 
State-Changed-Why:  
Closed aon originator's request. 
Thanks for the feedback! 
>Unformatted:
