From owner-freebsd-ports@FreeBSD.ORG Tue Jan 24 21:12:29 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 13F2216A41F for ; Tue, 24 Jan 2006 21:12:29 +0000 (GMT) (envelope-from dsymonds@gmail.com) Received: from zproxy.gmail.com (zproxy.gmail.com [64.233.162.201]) by mx1.FreeBSD.org (Postfix) with ESMTP id 93A0343D46 for ; Tue, 24 Jan 2006 21:12:28 +0000 (GMT) (envelope-from dsymonds@gmail.com) Received: by zproxy.gmail.com with SMTP id 8so1302469nzo for ; Tue, 24 Jan 2006 13:12:27 -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=rnYAnia2C/iGztwL51xsPmqabse4AgVpDalL4PM4Lqus3b9IrgnnP0/DwOf0H9pndClZbfhEPdq2j7V8Jr1N8+XmJa7DgX+wqQrqN7ISrIwIvvtpTF4j7ikpJ6USEgJAk4LmX2HlXu4+o2QHEClRiBFvW8wR/4dKlBNPgq3Varg= Received: by 10.36.251.60 with SMTP id y60mr2133819nzh; Tue, 24 Jan 2006 13:12:27 -0800 (PST) Received: by 10.36.5.7 with HTTP; Tue, 24 Jan 2006 13:12:27 -0800 (PST) Message-ID: Date: Wed, 25 Jan 2006 08:12:27 +1100 From: Dave Symonds To: "Andrew P." In-Reply-To: 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 , Scot Hetzel 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 21:12:29 -0000 On 25/01/06, Andrew P. wrote: > On 1/24/06, Scot Hetzel wrote: > > "The -v and -n options are non-standard and their use in scripts is > > not recommended." > > cp manpage has this since FreeBSD 4.7-RELEASE, > can we get over it and start using it? It's non-standard as many other OSes (Solaris for one) don't have them. It makes the semantics a lot clearer too, since it is very obvious that you only want to copy when the destination doesn't exist; if you don't remember the meaning of "-n", you might guess it means something else entirely. Dave.