delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2010/01/05/10:03:55

X-Recipient: archive-cygwin AT delorie DOT com
X-SWARE-Spam-Status: No, hits=-1.0 required=5.0 tests=AWL,BAYES_05,SPF_PASS
X-Spam-Check-By: sourceware.org
X-IronPortListener: Outbound_SMTP
From: "Buchbinder, Barry (NIH/NIAID) [E]" <BBuchbinder AT niaid DOT nih DOT gov>
To: "cygwin AT cygwin DOT com" <cygwin AT cygwin DOT com>
Date: Tue, 5 Jan 2010 10:03:29 -0500
Subject: cygpath: out of memory
Message-ID: <0105D5C1E0353146B1B222348B0411A208AB97E7D5@NIHMLBX02.nih.gov>
MIME-Version: 1.0
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

Upgrading from 1.5 to 1.7 I started getting an error message from
cygpath where I hadn't previously.  This can be exemplified by the
following.

$ cmd /c dir /s /b o:\\ | cygpath -u -f - | wc
cygpath: out of memory
  20029   20029  332488

While I've fixed my problem*, I thought that the cygwin developers
might want to know.

* xargs is my friend.  For the record, here is my fix.

$ cmd /c dir /s /b o:\\ | tr '\n' '\0' | xargs -0 cygpath -u | ...

Thanks for all the work that all the developers have put into cygwin.

- Barry
  Disclaimer: Statements made herein are not made on behalf of NIAID.

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

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019