delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2004/05/03/18:21:33

Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sources.redhat.com/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sources.redhat.com/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
Message-ID: <4096C63A.5030304@x-ray.at>
Date: Tue, 04 May 2004 00:22:50 +0200
From: Reini Urban <rurban AT x-ray DOT 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 AT cygwin DOT com>
Subject: Re: /bin/rm lots of files
References: <20040503213757 DOT GA368 AT ingber DOT com>
In-Reply-To: <20040503213757.GA368@ingber.com>
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/

- Raw text -


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