'split' Appending Too Many Characters

Tim Daneliuk tundra@tundraware.com
Thu Dec 30 23:35:00 GMT 2010


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...

IOW, split appears to be appending extraneous characters onto the end of the
line.

Other facts noted:

   1) The number of characters appended seems to vary depending on
      some magic having to do with either the left side of the | or
      the name of the destination file.

   2) 'split' seems to behave if run directly on the command line rather
      than being the destination of a pipe.

Ideas?
-- 
----------------------------------------------------------------------------
Tim Daneliuk     tundra@tundraware.com
PGP Key:         http://www.tundraware.com/PGP/


--
Problem reports:       http://cygwin.com/problems.html
FAQ:                   http://cygwin.com/faq/
Documentation:         http://cygwin.com/docs.html
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple



More information about the Cygwin mailing list