From owner-freebsd-ports@FreeBSD.ORG Sun Oct 31 21:59:53 2010 Return-Path: Delivered-To: ports@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 175C5106564A for ; Sun, 31 Oct 2010 21:59:53 +0000 (UTC) (envelope-from fjwcash@gmail.com) Received: from mail-yw0-f54.google.com (mail-yw0-f54.google.com [209.85.213.54]) by mx1.freebsd.org (Postfix) with ESMTP id C54448FC13 for ; Sun, 31 Oct 2010 21:59:52 +0000 (UTC) Received: by ywh2 with SMTP id 2so2449250ywh.13 for ; Sun, 31 Oct 2010 14:59:52 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:received:in-reply-to :references:date:message-id:subject:from:to:cc:content-type :content-transfer-encoding; bh=mEBS84pGl2L643jgD1268oJG4WB9LxjVx0say/4M/kM=; b=kzpv1gOBnT4EvT0ThdMlbLSdqrVNHoqCkEAfZNbblyk24EWEkWOufVjI8J7tVSFoOa 4JGDYgkrINsb9wzl32TPedNvhhK2S9AKitzN2YRl7mkNUVDfDGHfKEp2liBMTxNjoshA jgECBELbGBKRz65MgUpgLjP5liZUEbDg0RWbA= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type:content-transfer-encoding; b=ni+0LS9nkoggF+kHOdWYuxmESdcMw0DqE9FGZNto4Rkto4VNQd5GF1iAgnpW3kleby ToKI6GDPGVp3wN2zE1TleSF8nB7obPD8hL9hVLJthID//IbBekjmHOllcbTGTgOZuALK KMukxeZ08D9iabM8X+OCSiNLooQ0fuv2F1MZE= MIME-Version: 1.0 Received: by 10.90.10.34 with SMTP id 34mr7872470agj.157.1288562391872; Sun, 31 Oct 2010 14:59:51 -0700 (PDT) Received: by 10.90.97.7 with HTTP; Sun, 31 Oct 2010 14:59:51 -0700 (PDT) In-Reply-To: <4CCDBC20.10102@infracaninophile.co.uk> References: <4CCDBC20.10102@infracaninophile.co.uk> Date: Sun, 31 Oct 2010 14:59:51 -0700 Message-ID: From: Freddie Cash To: Matthew Seaman Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Cc: FreeBSD Ports Mailing List Subject: Re: Portmaster 3.1 upgrade 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, 31 Oct 2010 21:59:53 -0000 On Sun, Oct 31, 2010 at 11:57 AM, Matthew Seaman wrote: > On 31/10/2010 17:56, Freddie Cash wrote: >> The correct command is: =C2=A0pkg_delete -xf portmaster >> >> -x does name globbing internally to pkg_delete, and should be used >> over any shell globbing (like *). > > So dogmatic. =C2=A0'-x' is one alternative. =C2=A0A globbing expression i= s > another. =C2=A0Either can be useful, and either should be used at will an= d as > circumstances warrant. > > Also note that > > =C2=A0 pkg_delete -xf portmaster > > is technically not equivalent to > > =C2=A0 pkg_delete -f portmaster\* > > Instead it's equivalent to > > =C2=A0 pkg_delete -f \*portmaster\* Which is why I mentioned the "more safe" alternative, which you snipped out of your reply: pkg_delete -xif portmaster Note the extra "i" in the middle, which makes the pkg_delete call interactive, showing the package name to be deleted, and asking the user whether that's the correct package to be deleted. --=20 Freddie Cash fjwcash@gmail.com