From owner-freebsd-current@FreeBSD.ORG Sat Sep 25 06:15:57 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 EEFBE16A4CF for ; Sat, 25 Sep 2004 06:15:57 +0000 (GMT) Received: from cedar.ie.tusur.ru (fet-gw.ttk.tusur.ru [212.192.163.25]) by mx1.FreeBSD.org (Postfix) with ESMTP id 845DA43D54 for ; Sat, 25 Sep 2004 06:15:55 +0000 (GMT) (envelope-from pg@rainbow.ie.tusur.ru) Received: from rainbow.ie.tusur.ru (rainbow.ie.tusur.ru [212.192.122.75]) by cedar.ie.tusur.ru (8.12.11/8.12.11) with ESMTP id i8P6FhJC097994; Sat, 25 Sep 2004 13:15:44 +0700 (TSD) (envelope-from pg@rainbow.ie.tusur.ru) Received: from rainbow.ie.tusur.ru (localhost.ie.tusur.ru [127.0.0.1]) by rainbow.ie.tusur.ru (8.12.9p2/8.12.9) with ESMTP id i8P6Dn4D010935; Sat, 25 Sep 2004 13:13:49 +0700 (TSD) (envelope-from pg@rainbow.ie.tusur.ru) Received: (from pg@localhost) by rainbow.ie.tusur.ru (8.12.9p2/8.12.9/Submit) id i8P6DnfA010934; Sat, 25 Sep 2004 13:13:49 +0700 (TSD) (envelope-from pg) Date: Sat, 25 Sep 2004 13:13:49 +0700 From: Pavel Gubin To: horio shoichi Message-ID: <20040925061349.GE67823@ie.tusur.ru> References: <217202CB5FF8AE439E263CE3D48ECB50686C37@honda.int.hansa.lt> <20040923184648.GB775@gothmog.gr> <20040924124211.GB2050@eddie.nitro.dk> <20040925.040509.1c3d69aa1d0d33c0.10.0.3.20@bugsgrief.net> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20040925.040509.1c3d69aa1d0d33c0.10.0.3.20@bugsgrief.net> User-Agent: Mutt/1.4i Organization: TUCSR, Industrial Electronics dept X-Virus-Scanned: clamd / ClamAV version 0.75.1, clamav-milter version 0.75c on cedar.ie.tusur.ru X-Virus-Scanned: clamd / ClamAV version 0.75.1, clamav-milter version 0.75c on rainbow.ie.tusur.ru X-Virus-Status: Clean X-Virus-Status: Clean cc: freebsd-current@freebsd.org Subject: Re: Could ARG_MAX be increased? X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list Reply-To: Pavel Gubin List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 25 Sep 2004 06:15:58 -0000 On Sat, Sep 25, 2004 at 01:05:09PM +0900, horio shoichi wrote: > On Fri, 24 Sep 2004 14:42:11 +0200 "Simon L. Nielsen" wrote: > > On 2004.09.23 21:46:48 +0300, Giorgos Keramidas wrote: > > > Yeah. I think the real answer is to learn about find as you and others > > > have suggested. > > > > While it is correct that find is the best solution e.g. when > > scripting, it can be a PITA e.g. when moving a lot of files that you > > have to use find/xargs instead of simply "mv bla.*.1 dir/". I know > > how to use find, but it takes somewhat longer to type... > > > > Just my 0.02(insert local currency). > > > > Anyway, I'm probably just going to bump MAX_ARGS locally on my next > > world rebuild :-). [] > Many simple cases go with echo instead of find, so that the stupid > "-maxdepth 1 -mindepth 1" phrase can be eliminated. > > E.g., following lines are equivalent in sh and t?csh: > > % mv bla.*.1 dir/ > % echo bla.*.1|xargs -J% mv % dir/ > > Or even to (override 5000 limit may be necessary): > > % echo bla.*.1 dir/|xargs mv Then this returns us to start point because find builds list of files internally and does not affected by MAX_ARGS limit, while shell builds for echo exactly the same argument list as for mv. And also I think we're going to discuss the color of bikeshed :-) -- Pavel Gubin TUSC&R / Industrial Electronics dept / System Administrator 2:5005/14@fidonet / Phone +7-3822-423067 / ICQ 28835566