GNU bug report logs - #11761
Slight bug in split :-)

Previous Next

Package: coreutils;

Reported by: Jim Meyering <jim <at> meyering.net>

Date: Thu, 21 Jun 2012 22:16:02 UTC

Severity: normal

Done: Pádraig Brady <P <at> draigBrady.com>

Bug is archived. No further changes may be made.

Full log


Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):

From: Jim Meyering <jim <at> meyering.net>
To: François Pinard <pinard <at> iro.umontreal.ca>
Cc: bug-coreutils <at> gnu.org
Subject: Re: Slight bug in split :-)
Date: Fri, 22 Jun 2012 00:12:00 +0200
François Pinard wrote:
> Hi, Jim.
>
> I was looking for a problematic spot from a big file, and to isolate it,
> used "split" repeatedly as a way to zoom into the proper place.  Just to
> try, I used "split -C 100000 xad" at one place (after saving "xad"
> first, of course).  "split" interrupted itself, producing less output
> than input.
>
> My suggestion would be that split moans in some way before it destroys
> its own input. :-)
>
> François

Hi François!
Thank you for reporting that.
That's definitely a bug.

For the record, here's a quick reproducer:

    $ seq 10 > xaa
    $ split -C 6 xaa
    $ wc -c x??
    6 xaa
    1 xab
    7 total
    $ head x??
    ==> xaa <==
    1
    2
    3

    ==> xab <==
    3$

I've Cc'd the bug list, in case someone would like to write
the patch (fix, NEWS and test) before I get to it.
I may not have time tomorrow.




This bug report was last modified 13 years and 22 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.