On 12/30/2010 12:13 PM, 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...
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?
Clarification:
This works as expected:
cat /setup.exe | /usr/bin/split -b 10000 -
This does not:
cat /setup.exe | /usr/bin/split -b 10000 - foo.bar
--
----------------------------------------------------------------------------
Tim Daneliuk tun...@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