From owner-freebsd-current Fri Apr 20 20: 6:44 2001 Delivered-To: freebsd-current@freebsd.org Received: from hunkular.glarp.com (hunkular.glarp.com [199.117.25.251]) by hub.freebsd.org (Postfix) with ESMTP id 836D837B422 for ; Fri, 20 Apr 2001 20:06:41 -0700 (PDT) (envelope-from huntting@hunkular.glarp.com) Received: from localhost (localhost [127.0.0.1]) by hunkular.glarp.com (8.11.1/8.11.1) with ESMTP id f3L36UM59719; Fri, 20 Apr 2001 21:06:31 -0600 (MDT) (envelope-from huntting@hunkular.glarp.com) Message-Id: <200104210306.f3L36UM59719@hunkular.glarp.com> To: Brian Dean Cc: "Rodney W. Grimes" , Jens Schweikhardt , freebsd-current@FreeBSD.ORG Subject: Re: cp -d dir patch for review (or 'xargs'?) In-Reply-To: Your message of "Fri, 20 Apr 2001 22:39:43 EDT." <20010420223943.A59039@vger.bsdhome.com> Date: Fri, 20 Apr 2001 21:06:30 -0600 From: Brad Huntting Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG > Try: > > echo 1 2 3 4 5 6 7 8 9 | xargs -n 4 echo > > Now consider what would happen with the above suggested construct with > a very long file list. > > I don't see a problem with adding an option to cp to treat the first > argument as the target instead of the last argument. It's a simple > solution, the code change is simple, and it produces the exact desired > result. What's the problem? Unfortunatly, cp is not alone in needing this feature. I think a more sensable approach would be to add an "append args" flag to xargs. For example "--", which could be used like so: xargs cp -- destdir <