From owner-freebsd-current Wed Apr 25 12:36:30 2001 Delivered-To: freebsd-current@freebsd.org Received: from Awfulhak.org (awfulhak.demon.co.uk [194.222.196.252]) by hub.freebsd.org (Postfix) with ESMTP id 7373A37B424 for ; Wed, 25 Apr 2001 12:36:24 -0700 (PDT) (envelope-from brian@Awfulhak.org) Received: from hak.lan.Awfulhak.org (root@hak.lan.Awfulhak.org [172.16.0.12]) by Awfulhak.org (8.11.3/8.11.3) with ESMTP id f3PJa1313891; Wed, 25 Apr 2001 20:36:02 +0100 (BST) (envelope-from brian@lan.Awfulhak.org) Received: from hak.lan.Awfulhak.org (brian@localhost [127.0.0.1]) by hak.lan.Awfulhak.org (8.11.3/8.11.3) with ESMTP id f3PJbOM03513; Wed, 25 Apr 2001 20:37:24 +0100 (BST) (envelope-from brian@hak.lan.Awfulhak.org) Message-Id: <200104251937.f3PJbOM03513@hak.lan.Awfulhak.org> X-Mailer: exmh version 2.3.1 01/18/2001 with nmh-1.0.4 To: Garance A Drosihn Cc: "John W. De Boskey" , "David O'Brien" , Brian Somers , brian@Awfulhak.org Subject: Re: Updated: cp -t patch (w/ commentary) In-Reply-To: Message from Garance A Drosihn of "Wed, 25 Apr 2001 14:32:04 EDT." MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <3506.988227443.1@hak.lan.Awfulhak.org> Date: Wed, 25 Apr 2001 20:37:24 +0100 From: Brian Somers Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG > It is inconceivable that the proposed patch to 'xargs' would > increase your running time. I don't mean the standard '-I' > change, which would certainly destroy performance, but the > proposed patch to 'xargs' which solves your specific problem > in a general way. > > I'm still curious as to why you think the proposed change to > xargs will cause you ANY performance problem. I simply can > not imagine where you would get a performance problem from > the -Y idea (though I'm still tempted to change the letter > for that proposed option). I suspect that the bulk of the readers of this thread weren't paying attention. To summarise, the actual patch that Dima wrote made blah | xargs -Y {} cp {} somedir work as expected, replacing {} with as much of stdin as will fit. It was then suggested that #! /bin/sh cmd=$1 last=$2 shift 2 exec "$cmd" "$@" "$last" would solve the problem and the only argument against it was that ENV could corrupt the script and induce an E2BIG. I didn't consider that argument strong enough, so I stepped out - that's why I'm not writing this email. > -- > Garance Alistair Drosehn = gad@eclipse.acs.rpi.edu > Senior Systems Programmer or gad@freebsd.org > Rensselaer Polytechnic Institute or drosih@rpi.edu -- Brian Don't _EVER_ lose your sense of humour ! To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message