coreutils
[Top][All Lists]
Advanced

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

Re: [PATCH] mv: add --swap (-s) option to atomically swap 2 paths


From: Kaz Kylheku
Subject: Re: [PATCH] mv: add --swap (-s) option to atomically swap 2 paths
Date: Fri, 01 Mar 2024 19:50:49 -0800
User-agent: Roundcube Webmail/1.4.15

On 2024-03-01 01:18, Pádraig Brady wrote:
> I agree this is useful functionality,
> but the thinking is we should add this to a "replace" utility
> rather than to mv.

I made a "swap file-a file-b" utility in the early 1990s.

Needless to say, there was no system call for doing it atomically.

I didn't find it useful at all, and the code fell by the wayside.



reply via email to

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