What is Nostr?
mcc /
npub1tq4…6nqn
2024-06-30 16:15:35

mcc on Nostr: Is there a way to do `mv`, in either linux or Perl, that will fail if I try to copy a ...

Is there a way to do `mv`, in either linux or Perl, that will fail if I try to copy a file over another file?

In the mv manpage, I find a `-n` or `--no-clobber` option which does indeed refuse to replace file A with file B. But it is a silent failure. $? is 0 after I run an unsuccessful `mv -n`.
Author Public Key
npub1tq4yr3hv50gjeq9v6fy20j8nquxg8jzehxkpwwwtanq8fncf5arsdm6nqn