Date: Wed, 25 Jan 2006 08:12:27 +1100 From: Dave Symonds <dsymonds@gmail.com> To: "Andrew P." <infofarmer@gmail.com> Cc: FreeBSD Ports <ports@freebsd.org>, Scot Hetzel <swhetzel@gmail.com> Subject: Re: cp -n vs. test -f Message-ID: <ee77f5c20601241312n5868896el@mail.gmail.com> In-Reply-To: <cb5206420601241112v2786c4ccg3b5bd6837f4e79d0@mail.gmail.com> References: <cb5206420601240941r16ad7ed7x8ab50c40fee86e2b@mail.gmail.com> <790a9fff0601241026s3f4e7f09k92ab1de2cd974b5d@mail.gmail.com> <cb5206420601241112v2786c4ccg3b5bd6837f4e79d0@mail.gmail.com>
next in thread | previous in thread | raw e-mail | index | archive | help
On 25/01/06, Andrew P. <infofarmer@gmail.com> wrote: > On 1/24/06, Scot Hetzel <swhetzel@gmail.com> 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.
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?ee77f5c20601241312n5868896el>