From owner-freebsd-ports@FreeBSD.ORG Tue Jan 24 19:12:38 2006 Return-Path: X-Original-To: ports@freebsd.org Delivered-To: freebsd-ports@FreeBSD.ORG Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 6D8E516A41F for ; Tue, 24 Jan 2006 19:12:38 +0000 (GMT) (envelope-from infofarmer@gmail.com) Received: from zproxy.gmail.com (zproxy.gmail.com [64.233.162.203]) by mx1.FreeBSD.org (Postfix) with ESMTP id F055F43D58 for ; Tue, 24 Jan 2006 19:12:37 +0000 (GMT) (envelope-from infofarmer@gmail.com) Received: by zproxy.gmail.com with SMTP id 8so1275241nzo for ; Tue, 24 Jan 2006 11:12:37 -0800 (PST) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=GtiwvvBBBfZX9t3E3tosfvNGYMeRo7x5nTQQhDvZD/cwc1KyBuuHk+ipQq3ZU9SnVtGqmTEkjjEBl9EHjfgdtySumUbpVv+NsqDegaYiUB8UHPeoj8p8Uo8f9pPa1cBt7nOZgU9ILc3wU9emfPWSR+vZztmVq+PoS+XhxmTkkxo= Received: by 10.36.220.43 with SMTP id s43mr5080459nzg; Tue, 24 Jan 2006 11:12:37 -0800 (PST) Received: by 10.37.20.67 with HTTP; Tue, 24 Jan 2006 11:12:37 -0800 (PST) Message-ID: Date: Tue, 24 Jan 2006 22:12:37 +0300 From: "Andrew P." To: Scot Hetzel In-Reply-To: <790a9fff0601241026s3f4e7f09k92ab1de2cd974b5d@mail.gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline References: <790a9fff0601241026s3f4e7f09k92ab1de2cd974b5d@mail.gmail.com> Cc: FreeBSD Ports Subject: Re: cp -n vs. test -f 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: Tue, 24 Jan 2006 19:12:38 -0000 On 1/24/06, Scot Hetzel wrote: > On 1/24/06, Andrew P. wrote: > > So why do we use "if [ ! -f file ] ; then cp file.new file; fi" > > instead of "cp -n file.new file" in pkg-plist's and many > > other places? I think the "cp -n" way is what we really > > mean to do. > > > We probably don't use it because of the following at the bottom of the > cp man page. > > "The -v and -n options are non-standard and their use in scripts is > not recommended." > > Scot > -- > DISCLAIMER: > No electrons were mamed while sending this message. Only slightly bruised= . > cp manpage has this since FreeBSD 4.7-RELEASE, can we get over it and start using it?