"cp -n srcFile destFile" returns 0 if it copies the file. It also returns 0 if it fails to copy the file over an existing file. I would like "cp -n" to return 1 (or perhaps EEXIST) when it will refuse to overwrite an existing file. This would facilitate:
cp -n srcFile destFile && chmod +x destFile
Or other similar idioms.
Thanks!
Tom Kimpton
--
----
Now, we can do this the hard way, or... well, actually there's just the
hard way.
-- Buffy Summers, "Buffy the Vampire Slayer"
