Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Subscribe: List-Archive: List-Post: List-Help: , 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 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'" Subject: Re: /bin/rm lots of files References: <20040503213757 DOT GA368 AT ingber DOT 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/