mv: treat --exchange more like non-exchange
commit5a1d00e4504204dc4c84eb641abb961e8074a218
authorPaul Eggert <eggert@cs.ucla.edu>
Sat, 23 Mar 2024 01:38:08 +0000 (22 18:38 -0700)
committerPaul Eggert <eggert@cs.ucla.edu>
Sat, 23 Mar 2024 01:39:27 +0000 (22 18:39 -0700)
tree627033e756233a959994f236d701701ba7a5f391
parentff42adb55e99226f55a7b141316ee2a7b84a4857
mv: treat --exchange more like non-exchange

Also, improve quality of diagnostics.
Problems/suggestions by Bernhard Voelker in
<https://bugs.gnu.org/69532#82>.
* src/copy.c (emit_verbose): New arg FORMAT.  All uses changed,
to improve quality of diagnostics when --exchange is used.
(copy_internal): Don’t try to optimize --exchange so much; this
simplifies the code and keeps it closer to the non --exchange case.
src/copy.c