<feed xmlns='http://www.w3.org/2005/Atom'>
<title>coreutils/tests/mv, branch v9.7</title>
<subtitle>Mirror of https://https.git.savannah.gnu.org/git/coreutils.git/
</subtitle>
<id>https://git.shady.money/coreutils/atom?h=v9.7</id>
<link rel='self' href='https://git.shady.money/coreutils/atom?h=v9.7'/>
<link rel='alternate' type='text/html' href='https://git.shady.money/coreutils/'/>
<updated>2025-03-23T19:01:18Z</updated>
<entry>
<title>mv: port test to OpenBSD 7.5</title>
<updated>2025-03-23T19:01:18Z</updated>
<author>
<name>Paul Eggert</name>
<email>eggert@cs.ucla.edu</email>
</author>
<published>2025-03-23T19:00:31Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/coreutils/commit/?id=47204301f1abcb1900868e580041b69661c84341'/>
<id>urn:sha1:47204301f1abcb1900868e580041b69661c84341</id>
<content type='text'>
Problem reported by Bruno Haible &lt;https://bugs.gnu.org/75685&gt;.
* tests/mv/sticky-to-xpart.sh: Also allow OpenBSD behavior.
</content>
</entry>
<entry>
<title>tests: remove use of unprotected 'set'</title>
<updated>2025-01-20T15:21:58Z</updated>
<author>
<name>Pádraig Brady</name>
<email>P@draigBrady.com</email>
</author>
<published>2025-01-20T15:21:58Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/coreutils/commit/?id=dcc896e6c3d7fdcb75f493e216f94a2af558740b'/>
<id>urn:sha1:dcc896e6c3d7fdcb75f493e216f94a2af558740b</id>
<content type='text'>
* cfg.mk (sc_prohibit_bare_set): A new syntax check to
ensure we protect use of set with '--', so that args
beginning with '-' are not interpreted as options,
and if no args are present, all existing args are cleared.
* tests/cp/symlink-slash.sh: Add -- to unprotected use of set.
* tests/ls/ls-time.sh: Likewise.
* tests/ls/symlink-slash.sh: Likewise.
* tests/mkdir/perm.sh: Likewise.
* tests/mkdir/selinux.sh: Likewise.
* tests/mkdir/smack-no-root.sh: Likewise.
* tests/mkdir/smack-root.sh: Likewise.
* tests/mv/part-hardlink.sh: Likewise.
* tests/nice/nice.sh: Likewise.
* tests/stty/stty-row-col.sh: Likewise.
</content>
</entry>
<entry>
<title>cp,mv: ensure -i,f are not overridden by -u</title>
<updated>2025-01-06T14:46:21Z</updated>
<author>
<name>Pádraig Brady</name>
<email>P@draigBrady.com</email>
</author>
<published>2024-05-12T11:21:19Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/coreutils/commit/?id=a6ab944e19684d0ccd0568fa8c06f71921c1e6c3'/>
<id>urn:sha1:a6ab944e19684d0ccd0568fa8c06f71921c1e6c3</id>
<content type='text'>
Since coreutils 9.3 we had --update={all,older} override -i.
In coreutils 9.5 this was expanded to -u
(to make it consistent with --update=older).

This patch reinstates things so that -i combines with -u instead.
I.e. have -i be protective, rather than selective (like -u).

The -f option of mv is similarly adjusted in this patch,
so now --update does not override any of -f,-i,-n.

* NEWS: Mention the bug fix.
* src/cp.c (main): Don't have -u disable prompting.
* src/mv.c (main): Likewise.
* tests/cp/cp-i.sh: Add a test case for -i.
* tests/mv/update.sh: Likewise.
* tests/mv/i-3.sh. Add a test case for -f.
Fixes https://bugs.gnu.org/70887
</content>
</entry>
<entry>
<title>maint: update all copyright year number ranges</title>
<updated>2025-01-01T09:33:08Z</updated>
<author>
<name>Pádraig Brady</name>
<email>P@draigBrady.com</email>
</author>
<published>2025-01-01T09:14:56Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/coreutils/commit/?id=28b176085f04a6227d7fadd28a129b5cb02dfbf5'/>
<id>urn:sha1:28b176085f04a6227d7fadd28a129b5cb02dfbf5</id>
<content type='text'>
Update to latest gnulib with new copyright year.
Run "make update-copyright" and then...

* gnulib: Update included in this commit as copyright years
are the only change from the previous gnulib commit.
* tests/init.sh: Sync with gnulib to pick up copyright year.
* bootstrap: Likewise.
* tests/sample-test: Adjust to use the single most recent year.
</content>
</entry>
<entry>
<title>cp: actually support --update=none-fail</title>
<updated>2024-05-03T09:18:50Z</updated>
<author>
<name>Pádraig Brady</name>
<email>P@draigBrady.com</email>
</author>
<published>2024-05-03T09:18:50Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/coreutils/commit/?id=de49e993ea8b6dcdf6cada3c0f44a6371514f952'/>
<id>urn:sha1:de49e993ea8b6dcdf6cada3c0f44a6371514f952</id>
<content type='text'>
* src/cp.c: Add the entries for the --update=none-fail option.
* tests/mv/update.sh: Add a test case.
* NEWS: Mention the bug fix.
Fixes https://bugs.gnu.org/70727
</content>
</entry>
<entry>
<title>tests: avoid false failure on new mv --exchange test</title>
<updated>2024-03-24T18:32:34Z</updated>
<author>
<name>Pádraig Brady</name>
<email>P@draigBrady.com</email>
</author>
<published>2024-03-24T18:30:54Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/coreutils/commit/?id=c45fcb2ed2d80df5e7dea3c52eba24a9676d9eae'/>
<id>urn:sha1:c45fcb2ed2d80df5e7dea3c52eba24a9676d9eae</id>
<content type='text'>
* tests/mv/mv-exchange.sh: Canonicalize different
"operation not supported" messages, so we can ignore correctly.
Reported by Bruno Haible on AIX, NetBSD, and OpenBSD.
</content>
</entry>
<entry>
<title>mv: new option --exchange</title>
<updated>2024-03-20T21:40:29Z</updated>
<author>
<name>Paul Eggert</name>
<email>eggert@cs.ucla.edu</email>
</author>
<published>2024-03-20T21:00:25Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/coreutils/commit/?id=5d3fd24f4286d422482dd1697c9fe1bfa30f608e'/>
<id>urn:sha1:5d3fd24f4286d422482dd1697c9fe1bfa30f608e</id>
<content type='text'>
* src/copy.h (struct cp_options): New member 'exchange'.
* src/copy.c (copy_internal): Support the new member.
* src/mv.c (EXCHANGE_OPTION): New constant.
(long_options): Add --exchange.
(usage): Document --exchange.
(main): Support --exchange.
* tests/mv/mv-exchange.sh: New test case.
* tests/local.mk (all_tests): Add it.
</content>
</entry>
<entry>
<title>mv: revert add --swap (-x) option</title>
<updated>2024-03-05T21:34:00Z</updated>
<author>
<name>Pádraig Brady</name>
<email>P@draigBrady.com</email>
</author>
<published>2024-03-05T21:31:34Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/coreutils/commit/?id=9d8890d87231d477ca78269a4fce9242ec0624f1'/>
<id>urn:sha1:9d8890d87231d477ca78269a4fce9242ec0624f1</id>
<content type='text'>
Since this functionality is recently available
in the exch(1) utility from util-linux,
it was thought best not to complicate mv with it.

This reverts commit 6cd2d5e5335b5c286ff39e154e9dd38ba6923775
</content>
</entry>
<entry>
<title>mv: add --swap (-x) option to atomically swap 2 paths</title>
<updated>2024-03-03T12:18:45Z</updated>
<author>
<name>Petr Malat</name>
<email>oss@malat.biz</email>
</author>
<published>2024-02-29T22:02:03Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/coreutils/commit/?id=6cd2d5e5335b5c286ff39e154e9dd38ba6923775'/>
<id>urn:sha1:6cd2d5e5335b5c286ff39e154e9dd38ba6923775</id>
<content type='text'>
renameat2() syscall allows atomically swapping 2 paths on one
file system. Expose this ability to the user with --swap.

* doc/coreutils.texi: Describe mv --swap option.
* src/mv.c (main): Support --swap.
* tests/mv/mv-swap.sh: Add test for mv -x.
* tests/local.mk: Reference new test.
* NEWS: Mention the new option.
</content>
</entry>
<entry>
<title>cp,mv: add --update=none-fail to fail if existing files</title>
<updated>2024-02-26T17:33:02Z</updated>
<author>
<name>Pádraig Brady</name>
<email>P@draigBrady.com</email>
</author>
<published>2024-02-05T15:55:07Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/coreutils/commit/?id=49912bac286eb3c0ef7d1567ae790193ad5eb2e8'/>
<id>urn:sha1:49912bac286eb3c0ef7d1567ae790193ad5eb2e8</id>
<content type='text'>
* src/cp.c (main): Add support for --update=none-fail to provide the
functionality of diagnosing files in the destination,
and exiting with failure status.
(usage): Mark -n as deprecated.
* src/mv.c: Likewise.
* src/copy.h: Add UPDATE_NONE_FAIL definition.
* src/system.h (emit_update_parameters_note): Add --update=none-fail
description.
* doc/coreutils.texi (cp invocation): Likewise.
Also mention why -n is deprecated.
* tests/mv/update.sh: Add a test case, including precedence
with -n and other --update options.
* tests/cp/cp-i.sh: Verify that --backup and --update=none{,-fail}
are mutually exclusive.
* tests/mv/mv-n.sh: Likewise.
* NEWS: Mention the new feature.
Addresses https://bugs.gnu.org/62572
</content>
</entry>
</feed>
