delorie.com/archives/browse.cgi | search |
X-Recipient: | archive-cygwin AT delorie DOT 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 <tundra AT tundraware DOT com> |
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 AT cygwin DOT com |
Subject: | Re: 'split' Appending Too Many Characters |
References: | <4D1CCBAC DOT 6030004 AT tundraware DOT com> |
In-Reply-To: | <4D1CCBAC.6030004@tundraware.com> |
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 AT tundraware DOT com |
X-IsSubscribed: | yes |
Mailing-List: | contact cygwin-help AT cygwin DOT com; run by ezmlm |
List-Id: | <cygwin.cygwin.com> |
List-Subscribe: | <mailto:cygwin-subscribe AT cygwin DOT com> |
List-Archive: | <http://sourceware.org/ml/cygwin/> |
List-Post: | <mailto:cygwin AT cygwin DOT com> |
List-Help: | <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs> |
Sender: | cygwin-owner AT cygwin DOT com |
Mail-Followup-To: | cygwin AT cygwin DOT com |
Delivered-To: | mailing list cygwin AT cygwin DOT 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 AT tundraware DOT 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
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |