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 functionality to my personal TODO list
to review/consider.
A separate utility would be fine with me, and probably easier to
maintain so I can understand where that comes from.
My main "problem" is that there is no such tool readily available so
I'll take the syscall variant in any form :)
Please note the name 'replace' is already taken (a tool from the mysql
toolbag, looks like a sort of simplified sed s/// pattern)
I'm also not sure it conveys the exchange/swap meaning, "replacing
a by/with b" means b is now where a was, but doesn't say anything about
where a went...
(I did say naming tool was the hardest part!)