coreutils
[Top][All Lists]
Advanced

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

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


From: Dominique Martinet
Subject: Re: [RFC PATCH] mv: add --swap option
Date: Fri, 28 May 2021 21:25:26 +0900

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!)

-- 
Dominique



reply via email to

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