Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 29 Sep 2004 16:39:43 GMT
From:      Andrea Forghieri <a.forghieri@emmegi.it>
To:        freebsd-gnats-submit@FreeBSD.org
Subject:   bin/72173: csplit(1) ver 1.9 wrong behaviour with negative offset and repeat pattern set
Message-ID:  <200409291639.i8TGdh2v049076@www.freebsd.org>
Resent-Message-ID: <200409291640.i8TGeLcG079461@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help

>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:
>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:
>Unformatted:



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200409291639.i8TGdh2v049076>