From nobody@FreeBSD.org  Wed Sep 29 16:39:44 2004
Return-Path: <nobody@FreeBSD.org>
Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125])
	by hub.freebsd.org (Postfix) with ESMTP id 665A716A4CE
	for <freebsd-gnats-submit@FreeBSD.org>; Wed, 29 Sep 2004 16:39:44 +0000 (GMT)
Received: from www.freebsd.org (www.freebsd.org [216.136.204.117])
	by mx1.FreeBSD.org (Postfix) with ESMTP id 44A2543D4C
	for <freebsd-gnats-submit@FreeBSD.org>; Wed, 29 Sep 2004 16:39:44 +0000 (GMT)
	(envelope-from nobody@FreeBSD.org)
Received: from www.freebsd.org (localhost [127.0.0.1])
	by www.freebsd.org (8.12.11/8.12.11) with ESMTP id i8TGdhUW049078
	for <freebsd-gnats-submit@FreeBSD.org>; Wed, 29 Sep 2004 16:39:43 GMT
	(envelope-from nobody@www.freebsd.org)
Received: (from nobody@localhost)
	by www.freebsd.org (8.12.11/8.12.11/Submit) id i8TGdh2v049076;
	Wed, 29 Sep 2004 16:39:43 GMT
	(envelope-from nobody)
Message-Id: <200409291639.i8TGdh2v049076@www.freebsd.org>
Date: Wed, 29 Sep 2004 16:39:43 GMT
From: Andrea Forghieri <a.forghieri@emmegi.it>
To: freebsd-gnats-submit@FreeBSD.org
Subject: csplit(1) ver 1.9 wrong behaviour with negative offset and repeat pattern set
X-Send-Pr-Version: www-2.3

>Number:         72173
>Category:       bin
>Synopsis:       csplit(1) ver 1.9 wrong behaviour with negative offset and repeat pattern set
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Wed Sep 29 16:40:20 GMT 2004
>Closed-Date:    
>Last-Modified:  Wed Jan  5 12:00:55 GMT 2005
>Originator:     Andrea Forghieri
>Release:        5.2.1-RC2
>Organization:
Emmegi S.p.A.
>Environment:
FreeBSD STARGATEII.emmegroup.it 5.2.1-RC2 FreeBSD 5.2.1-RC2 #0: Thu Feb 12 16:28:31 GMT 2004     root@wv1u.btc.adaptec.com:/usr/obj/usr/src/sys/GENERIC  i386
      
>Description:
When a negative offset is given , and repeat pattern is set , every file   but the first and the last , are empty (size = 0 ).       
>How-To-Repeat:
csplit -k "testfile" '/4/-2' {2}

testfile is :

1
2
3
4
5
6
>Fix:
>Release-Note:
>Audit-Trail:

From: Tim Robbins <tjr@freebsd.org>
To: bug-followup@freebsd.org
Cc:  
Subject: Re: bin/72173: csplit(1) ver 1.9 wrong behaviour with negative offset and repeat pattern set
Date: Wed, 5 Jan 2005 22:51:25 +1100

 Following up to note that Tru64 exhibits the same behaviour.
>Unformatted:
