Control: forwarded -1 https://github.com/util-linux/util-linux/issues/3416
Control: tags -1 = moreinfo
On Mon, Feb 17, 2025 at 02:30:12AM +0100, Chris Hofstaedtler wrote:
> On Mon, Feb 10, 2025 at 04:43:45PM +0100, Jörg Behrmann wrote:
> > On Mon, Feb 10, 2025 at 02:57:47PM +0100, Chris Hofstaedtler wrote:
> > > How important is `exch`? Is it a tool that is really essential, and
> > > should thus be in the "util-linux" package, which is installed on
> > > each and every Debian installation?
> > >
> > > I've been avoiding adding new stuff to "util-linux" to avoid
> > > bloating it even more.
> > >
> > > Can it land in util-linux-extra, which is at least only
> > > pseudo-Essential? Or some other package, like bsdutils or
> > > bsdextrautils (not the best names)?
> > >
> >
> > It could in principle also go to util-linux-extra, but it would be a nice
> > addition in the default set. Looking at other distros, Arch, CentOS 10
> > Stream
> > (and therefore once it trickles down its downstreams RHEL, Alma und Rocky),
> > and
> > openSUSE Tumbleweed ship it by default.
>
> I have to say I don't understand why this is not just a mode of
> operation of mv(1).
Indeed it is:
In coreutils 9.5:
mv: add --swap (-x) option to atomically swap 2 paths
renameat2() syscall allows atomically swapping 2 paths on one
file system. Expose this ability to the user with --swap.
Why do we need another binary that does something mv already does?
I've asked upstream here: https://github.com/util-linux/util-linux/issues/3416
Chris