GNU bug report logs - #30907
mv return value.

Previous Next

Package: coreutils;

Reported by: Jorgen Harmse <Jorgen.Harmse <at> samsclub.com>

Date: Thu, 22 Mar 2018 17:20:01 UTC

Severity: normal

Tags: fixed

Done: Assaf Gordon <assafgordon <at> gmail.com>

Bug is archived. No further changes may be made.

Full log


Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):

From: Jorgen Harmse <Jorgen.Harmse <at> samsclub.com>
To: "bug-coreutils <at> gnu.org" <bug-coreutils <at> gnu.org>
Subject: mv return value.
Date: Thu, 22 Mar 2018 17:02:59 +0000
[Message part 1 (text/plain, inline)]
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 <at> 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.

[Message part 2 (text/html, inline)]

This bug report was last modified 6 years and 206 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.