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 

jorgen.harmse@samsclub.com

 

 

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.