Date: Wed, 25 Apr 2001 20:37:24 +0100 From: Brian Somers <brian@Awfulhak.org> To: Garance A Drosihn <drosih@rpi.edu> Cc: "John W. De Boskey" <jwd@bsdwins.com>, "David O'Brien" <freebsd-current@FreeBSD.ORG>, Brian Somers <brian@Awfulhak.org>, brian@Awfulhak.org Subject: Re: Updated: cp -t patch (w/ commentary) Message-ID: <200104251937.f3PJbOM03513@hak.lan.Awfulhak.org> In-Reply-To: Message from Garance A Drosihn <drosih@rpi.edu> of "Wed, 25 Apr 2001 14:32:04 EDT." <p05100c03b70ca78af686@[128.113.24.47]>
next in thread | previous in thread | raw e-mail | index | archive | help
> 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 <brian@Awfulhak.org> <brian@[uk.]FreeBSD.org> <http://www.Awfulhak.org> <brian@[uk.]OpenBSD.org> 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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200104251937.f3PJbOM03513>