Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 24 Jan 2006 20:41:37 +0300
From:      "Andrew P." <infofarmer@gmail.com>
To:        FreeBSD Ports <ports@freebsd.org>
Subject:   cp -n vs. test -f
Message-ID:  <cb5206420601240941r16ad7ed7x8ab50c40fee86e2b@mail.gmail.com>

next in thread | raw e-mail | index | archive | help
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.



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?cb5206420601240941r16ad7ed7x8ab50c40fee86e2b>