This is the mail archive of the cygwin mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: 'split' Appending Too Many Characters


On 12/30/2010 11:13 AM, Tim Daneliuk wrote:
> I have a script I've run successfully for years on a Win XP system.
> 
> I just did a clean install of the whole OS and Cygwin from scratch.
> 
> The script makes use of the 'split' utility using a command
> along the lines of:
> 
>   tar -czvfT file - | /usr/bin/split -b 10000 - foo.bar
> 
> It formerly produced files in the form foo.bar.xa, foo.bar.xb, and so
> forth.
> 
> Now it produces files in the form: foo.bar.xaaaaaaa...

Known upstream bug in coreutils 8.8:
http://lists.gnu.org/archive/html/bug-coreutils/2010-12/msg00109.html

and will be fixed soon (either by upstream coreutils 8.9, or by
back-porting that patch into cygwin coreutils-8.8-2).

> 
> Ideas?

Adding '-a2' may serve as a decent workaround in the meantime.

-- 
Eric Blake   eblake@redhat.com    +1-801-349-2682
Libvirt virtualization library http://libvirt.org

Attachment: signature.asc
Description: OpenPGP digital signature


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]