Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 21 Apr 2001 16:24:36 -0400
From:      Brian Dean <bsd@bsdhome.com>
To:        Sheldon Hearn <sheldonh@uunet.co.za>
Cc:        freebsd-current@FreeBSD.ORG
Subject:   Re: cp -d dir patch for review (or 'xargs'?)
Message-ID:  <20010421162436.A56976@vger.bsdhome.com>
In-Reply-To: <67741.987867271@axl.fw.uunet.co.za>; from sheldonh@uunet.co.za on Sat, Apr 21, 2001 at 05:34:31PM %2B0200
References:  <200104211527.RAA06452@lurza.secnetix.de> <67741.987867271@axl.fw.uunet.co.za>

next in thread | previous in thread | raw e-mail | index | archive | help
On Sat, Apr 21, 2001 at 05:34:31PM +0200, Sheldon Hearn wrote:

> So we have two problems:
> 
> 1) Calling cp(1) repetitively is inefficient.
> 
> 2) The argument list is too big for cp(1).
> 
> Extending cp(1) will not solve (2).  Extending xargs(1) will solve both.
> So why is an extension to cp(1) being proposed?

But extending cp does solve the problem.  The proposal was to make

	% cp -d target src1 src2 ... srcN

Be equivalent to;

	% cp src1 src2 ... srcN target

This makes cp work with xargs;

	% cat ReallyBigListOfFiles | xargs cp -d target

-Brian

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-current" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20010421162436.A56976>