[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

bug#30907: mv return value.

From: Paul Eggert
Subject: bug#30907: mv return value.
Date: Thu, 22 Mar 2018 14:53:51 -0700
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.6.0

On 03/22/2018 12:17 PM, Jorgen Harmse wrote:
My preference is a non-zero exit status when mv does not move/rename the file.

Hmm, this might be doable. POSIX says that the mv exit status is 0 if "All input files were moved successfully" and is >0 if "An error occurred". With mv -i, if the user declines a move and there is other file then neither case applies, so mv can yield either 0 or nonzero as an exit status. Of course someone would have to write the code and (more importantly) the documentation to do it that way, but I think your request is a reasonable one.

reply via email to

[Prev in Thread] Current Thread [Next in Thread]