Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe@cygwin.com>
List-Archive: <http://sources.redhat.com/ml/cygwin/>
List-Post: <mailto:cygwin@cygwin.com>
List-Help: <mailto:cygwin-help@cygwin.com>, <http://sources.redhat.com/ml/#faqs>
Sender: cygwin-owner@cygwin.com
Mail-Followup-To: cygwin@cygwin.com
Delivered-To: mailing list cygwin@cygwin.com
Message-ID: <4096C63A.5030304@x-ray.at>
Date: Tue, 04 May 2004 00:22:50 +0200
From: Reini Urban <rurban@x-ray.at>
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.0; de-AT; rv:1.7b) Gecko/20040421 MultiZilla/1.5.0.4h
MIME-Version: 1.0
To: "'Cygwin List'" <cygwin@cygwin.com>
Subject: Re: /bin/rm lots of files
References: <20040503213757.GA368@ingber.com>
In-Reply-To: <20040503213757.GA368@ingber.com>
Content-Type: text/plain; charset=us-ascii; format=flowed
Content-Transfer-Encoding: 7bit
X-Spam-Checker-Version: SpamAssassin 2.63 (2004-01-11) on hornet.mur.at
X-Spam-Level: 
X-Spam-Status: No, hits=0.2 required=5.0 tests=NORMAL_HTTP_TO_IP autolearn=no version=2.63
X-IsSubscribed: yes

Lester Ingber schrieb:
> I couldn't find what I thought I recalled as a similar posting.
> In my Makefile I have a command to remove a directory of files.
> I get a complaint that there are too many files to remove (about 1000).
> How do I change the default for increasing the number of listed/open files?

You don't.
cygwin is not better that most other POSIX system, even if it's on MS 
Windows. This limitation is based on the maximum length of arguments for 
a new process, usually getconf ARG_MAX

 >The maximum is depending on the system/kernel and ranging
 >from 4096 bytes (POSIX) to about a megabyte on some systems.
 >On some systems, you're more likely to run into this limit,
 >e.g., HP-UX 10 and IRIX 6 (20478 bytes) or AIX 4 (24576 bytes).

On unix you would do it with xargs for example, or find -exec rm \{\},
on cygwin also.

$ man xargs
$ ls --color=none|xargs /bin/rm

http://216.239.51.104/search?q=cache:W-J38vNyuV4J:dbforums.com/arch/144/2002/10/514976+bash+commandline+length+limitation&hl=en

-- 
Reini Urban
http://xarch.tu-graz.ac.at/home/rurban/


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

