Subject: bug#30907: mv return value.

From: Jorgen Harmse <[email-masked]>
Date: Thu, 22 Mar 2018 17:02:59 +0000

The documentation specifies the usual exit convention, but doesn’t say what counts as success. For example, I would like
       mv -i a b || (diff a b && rm a)
to rename a if b does not exist and to remove a if they are identical, but it doesn’t work.

Regards,
Jorgen Harmse

Sam’s Club Technology
Phone 512.633.2226
[email-masked]

This e-mail and any files transmitted with it are confidential and intended solely
for the individual or entity to whom they are addressed.  If you have received
this e-mail in error, destroy it immediately.  Wal-Mart Confidential.