From owner-freebsd-ports@FreeBSD.ORG Tue Jan 24 17:42:04 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 82E1316A462 for ; Tue, 24 Jan 2006 17:42:03 +0000 (GMT) (envelope-from infofarmer@gmail.com) Received: from zproxy.gmail.com (zproxy.gmail.com [64.233.162.201]) by mx1.FreeBSD.org (Postfix) with ESMTP id 45D0C43DBE for ; Tue, 24 Jan 2006 17:41:38 +0000 (GMT) (envelope-from infofarmer@gmail.com) Received: by zproxy.gmail.com with SMTP id 8so1254894nzo for ; Tue, 24 Jan 2006 09:41: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:mime-version:content-type:content-transfer-encoding:content-disposition; b=V/wJJBX/ytuUPTKhmSqLAzQTMX0k30MOpR0UIDNJHrJA3ZTCx51tOWT0aZs/zWB1j/9G1RuHDPjSyugQ9pXOuNFzZxvwAfSnFT9gKc7kk+oNHJcnJPdk1Xny9055t2PQhjlWN4KrtRity18x85Py3RrwLJERqIwUrasFn1ddvlg= Received: by 10.36.74.17 with SMTP id w17mr5013672nza; Tue, 24 Jan 2006 09:41:37 -0800 (PST) Received: by 10.37.20.67 with HTTP; Tue, 24 Jan 2006 09:41:37 -0800 (PST) Message-ID: Date: Tue, 24 Jan 2006 20:41:37 +0300 From: "Andrew P." To: FreeBSD Ports MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline Cc: Subject: 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 17:42:04 -0000 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. Thanks, Andrew P.