X-Recipient: archive-cygwin@delorie.com X-SWARE-Spam-Status: No, hits=0.0 required=5.0 tests=AWL,BAYES_50,TW_CZ,TW_ZV,T_RP_MATCHES_RCVD X-Spam-Check-By: sourceware.org Message-ID: <4D1CCCFC.5000509@tundraware.com> Date: Thu, 30 Dec 2010 12:18:36 -0600 From: Tim Daneliuk User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.2.13) Gecko/20101207 Thunderbird/3.1.7 MIME-Version: 1.0 To: cygwin@cygwin.com Subject: Re: 'split' Appending Too Many Characters References: <4D1CCBAC.6030004@tundraware.com> In-Reply-To: <4D1CCBAC.6030004@tundraware.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-TundraWare-MailScanner-Information: Please contact the ISP for more information X-TundraWare-MailScanner-ID: oBUIIdhn004645 X-TundraWare-MailScanner: Found to be clean X-TundraWare-MailScanner-From: tundra@tundraware.com X-IsSubscribed: yes Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner@cygwin.com Mail-Followup-To: cygwin@cygwin.com Delivered-To: mailing list cygwin@cygwin.com 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 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