From owner-freebsd-current@FreeBSD.ORG Thu Sep 23 18:47:24 2004 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id CC7A116A4FE for ; Thu, 23 Sep 2004 18:47:24 +0000 (GMT) Received: from nic.ach.sch.gr (nic.sch.gr [194.63.238.4]) by mx1.FreeBSD.org (Postfix) with ESMTP id 064E343D31 for ; Thu, 23 Sep 2004 18:47:22 +0000 (GMT) (envelope-from keramida@ceid.upatras.gr) Received: (qmail 19702 invoked by uid 207); 23 Sep 2004 18:47:20 -0000 Received: from keramida@ceid.upatras.gr by nic by uid 201 with qmail-scanner-1.21 (sophie: 3.04/2.19/3.81. Clear:RC:1(81.186.70.59):. Processed in 6.622709 secs); 23 Sep 2004 18:47:20 -0000 Received: from dialup59.ach.sch.gr (HELO gothmog.gr) ([81.186.70.59]) (envelope-sender ) by nic.sch.gr (qmail-ldap-1.03) with DES-CBC3-SHA encrypted SMTP for ; 23 Sep 2004 18:47:13 -0000 Received: from gothmog.gr (gothmog [127.0.0.1]) by gothmog.gr (8.13.1/8.13.1) with ESMTP id i8NIkse3001013; Thu, 23 Sep 2004 21:46:54 +0300 (EEST) (envelope-from keramida@ceid.upatras.gr) Received: (from giorgos@localhost) by gothmog.gr (8.13.1/8.13.1/Submit) id i8NIkmK3001012; Thu, 23 Sep 2004 21:46:48 +0300 (EEST) (envelope-from keramida@ceid.upatras.gr) Date: Thu, 23 Sep 2004 21:46:48 +0300 From: Giorgos Keramidas To: Garance A Drosihn Message-ID: <20040923184648.GB775@gothmog.gr> References: <217202CB5FF8AE439E263CE3D48ECB50686C37@honda.int.hansa.lt> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: Phone: +30-2610-312145 Mobile: +30-6944-116520 X-Mailman-Approved-At: Fri, 24 Sep 2004 12:05:54 +0000 cc: freebsd-current@freebsd.org cc: Putinas Piliponis Subject: Re: Could ARG_MAX be increased? X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 23 Sep 2004 18:47:24 -0000 On 2004-09-23 14:28, Garance A Drosihn wrote: > I have hit the limits in Solaris, for instance, and one of the earlier > messages claimed that Sun uses a value of 1meg for MAX_ARGS. Actually, on a Solaris8 12/02 installation I have access to it's more like 256 Kb. At least this is what a configure.sh script generated by autoconf-2.59 detects when it prints: checking the maximum length of command line arguments... 262144 > I have nothing against the idea of increasing the value of MAX_ARGS, > as long as people realize that increasing it will not solve the issue > for all situations. Yeah. I think the real answer is to learn about find as you and others have suggested. The killer feature that convinced me to learn about find a few years ago was one of sh(1) though. The ability to pipe the output of find (or any other command, for that matter) to a custom sh loop using something like: find . -type f | \ while read line ;do # Do something with $line done This and xargs -0 for the cases where filenames can contain whitespace works like a charm anywhere, anytime... - Giorgos