From owner-freebsd-current@FreeBSD.ORG Sat Sep 25 04:05:20 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 5C33616A4CE for ; Sat, 25 Sep 2004 04:05:20 +0000 (GMT) Received: from ybbsmtp02.mail.yahoo.co.jp (ybbsmtp02.mail.yahoo.co.jp [210.81.151.102]) by mx1.FreeBSD.org (Postfix) with SMTP id 6A71F43D1F for ; Sat, 25 Sep 2004 04:05:19 +0000 (GMT) (envelope-from ayakokiko@ybb.ne.jp) Received: from unknown (HELO gorgon.near.this) (219.11.234.11 with poptime) by ybbsmtp02.mail.yahoo.co.jp with SMTP; 25 Sep 2004 04:05:18 -0000 X-Apparently-From: Received: from hydra.near.this (hydra.near.this [10.0.3.20]) by gorgon.near.this (Postfix) with ESMTP id 52D8D7F24 for ; Sat, 25 Sep 2004 13:05:10 +0900 (JST) Received: by hydra.near.this (Postfix, from userid 100) id DBA359851; Sat, 25 Sep 2004 13:05:09 +0900 (JST) Date: Sat, 25 Sep 2004 13:05:09 +0900 From: horio shoichi To: freebsd-current@freebsd.org In-Reply-To: <20040924124211.GB2050@eddie.nitro.dk> References: <217202CB5FF8AE439E263CE3D48ECB50686C37@honda.int.hansa.lt> <20040923184648.GB775@gothmog.gr> <20040924124211.GB2050@eddie.nitro.dk> X-Mailer: Sylpheed-Claws 0.9.12a (GTK+ 1.2.10; i386-portbld-freebsd4.9) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Message-Id: <20040925.040509.1c3d69aa1d0d33c0.10.0.3.20@bugsgrief.net> 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: Sat, 25 Sep 2004 04:05:20 -0000 On Fri, 24 Sep 2004 14:42:11 +0200 "Simon L. Nielsen" wrote: > On 2004.09.23 21:46:48 +0300, Giorgos Keramidas wrote: > > On 2004-09-23 14:28, Garance A Drosihn wrote: > > > 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. > > 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 :-). > > -- > Simon L. Nielsen > FreeBSD Documentation Team > 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 Hope this reduces your typing efforts. horio shoichi