Re: [RFC PATCH] mv: add --swap option

2021-05-28 Thread Michael Stone
On Fri, May 28, 2021 at 09:25:26PM +0900, Dominique Martinet wrote: Pádraig Brady wrote on Fri, May 28, 2021 at 12:58:48PM +0100: Yes sorry for the delay. Thanks for the reply! I'm not sure about --swap in mv to be honest. We were considering a separate `replace` utility, which might be more

Re: [RFC PATCH] mv: add --swap option

2021-05-28 Thread Dominique Martinet
Pádraig Brady wrote on Fri, May 28, 2021 at 12:58:48PM +0100: > Yes sorry for the delay. Thanks for the reply! > I'm not sure about --swap in mv to be honest. > We were considering a separate `replace` utility, > which might be more appropriate for this functionality. > I've added this --swap fun

Re: [RFC PATCH] mv: add --swap option

2021-05-28 Thread Pádraig Brady
On 28/05/2021 02:02, Dominique Martinet wrote: Hi, Dominique Martinet wrote on Mon, Apr 12, 2021 at 02:23:41PM +0900: gnulib supports RENAME_EXCHANGE in renameatu, but there is currently no way of using it. Add a new switch to allow users to swap files atomically. I'm not going to insist if t

Re: [RFC PATCH] mv: add --swap option

2021-05-27 Thread Dominique Martinet
Hi, Dominique Martinet wrote on Mon, Apr 12, 2021 at 02:23:41PM +0900: > gnulib supports RENAME_EXCHANGE in renameatu, but there is currently > no way of using it. > Add a new switch to allow users to swap files atomically. I'm not going to insist if the feature isn't wanted; but an answer would

[RFC PATCH] mv: add --swap option

2021-04-11 Thread Dominique Martinet
From: Dominique Martinet gnulib supports RENAME_EXCHANGE in renameatu, but there is currently no way of using it. Add a new switch to allow users to swap files atomically. --- Note: I'm not suggesting this as a final version of the patch; it's just something I hacked in a few minutes just now an