From owner-freebsd-ports@FreeBSD.ORG Sun Mar 27 16:54:28 2011 Return-Path: Delivered-To: freebsd-ports@freebsd.org Received: from mx2.freebsd.org (mx2.freebsd.org [IPv6:2001:4f8:fff6::35]) by hub.freebsd.org (Postfix) with ESMTP id D7422106564A for ; Sun, 27 Mar 2011 16:54:28 +0000 (UTC) (envelope-from dougb@FreeBSD.org) Received: from 65-241-43-5.globalsuite.net (hub.freebsd.org [IPv6:2001:4f8:fff6::36]) by mx2.freebsd.org (Postfix) with ESMTP id A022B162626; Sun, 27 Mar 2011 16:54:28 +0000 (UTC) Message-ID: <4D8F6BC4.9050300@FreeBSD.org> Date: Sun, 27 Mar 2011 09:54:28 -0700 From: Doug Barton Organization: http://SupersetSolutions.com/ User-Agent: Mozilla/5.0 (X11; U; FreeBSD i386; en-US; rv:1.9.2.15) Gecko/20110326 Thunderbird/3.1.9 MIME-Version: 1.0 To: perryh@pluto.rain.com References: <61994f32f152b25487eaf153546ab59f@flabnapple.net> <4D8E18AF.6010906@FreeBSD.org> <4D8E1B9D.8050402@infracaninophile.co.uk> <4D8EBDBA.6070602@FreeBSD.org> <4d8ee69f.sDPKG5fISx5FNrmy%perryh@pluto.rain.com> In-Reply-To: <4d8ee69f.sDPKG5fISx5FNrmy%perryh@pluto.rain.com> X-Enigmail-Version: 1.1.2 OpenPGP: id=1A1ABC84 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: rg.lists@rzweb.com, freebsd-ports@freebsd.org Subject: Re: Updating multiple ports with portmaster X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 27 Mar 2011 16:54:28 -0000 On 03/27/2011 00:26, perryh@pluto.rain.com wrote: > Doug Barton wrote: >> On 03/26/2011 10:00, Matthew Seaman wrote: >>> pkg_version -vIL= | awk '/^p5-/ { print $1 }' | xargs portmaster >> >> That's a good suggestion, but if you want to use that technique, better >> would be: portmaster `pkg_version -vIL= | awk '/^p5-/ { print $1 }'` ... > > Unless the number of ports involved is very large, either > should produce exactly the same effect. Absent a -n or -s > switch, xargs collects up to 5000 args or a ~250KB command > line for each invocation of (in this case) portmaster. Interesting ... not sure how I got it in my mind that xargs always runs them one at a time, but thanks for clarifying this. :) Doug -- Nothin' ever doesn't change, but nothin' changes much. -- OK Go Breadth of IT experience, and depth of knowledge in the DNS. Yours for the right price. :) http://SupersetSolutions.com/