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 #8 received at 30907 <at> debbugs.gnu.org (full text, mbox):

From: Paul Eggert <eggert <at> cs.ucla.edu>
To: Jorgen Harmse <Jorgen.Harmse <at> samsclub.com>, 30907 <at> debbugs.gnu.org
Subject: Re: bug#30907: mv return value.
Date: Thu, 22 Mar 2018 11:48:32 -0700
On 03/22/2018 10:02 AM, Jorgen Harmse wrote:
> 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.

I'm afraid that's a bit vague. What wording change do you suggest?





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.