Sylvestre Ledru
2ec4e9f784
mv: preserve the xattr
...
Should make tests/mv/acl pass
2024-01-16 13:12:02 +01:00
Sylvestre Ledru
4c698d58e0
mv: support the case mkdir a && mv a e/
2024-01-05 12:56:24 +01:00
Sylvestre Ledru
db9f4cc315
Merge pull request #5483 from cakebaker/mv_fix_5481
...
mv: fix subdir detection
2023-12-25 22:02:23 +01:00
Daniel Hofstetter
03f1b8aa3a
mv: fix subdir detection
2023-12-25 13:12:18 +01:00
Sylvestre Ledru
15573579cc
Fix the windows tests
2023-12-24 15:18:31 +01:00
Sylvestre Ledru
c94773f522
mv: make sure it continues when hiting an error
2023-12-23 13:27:00 +01:00
Sylvestre Ledru
3af8ad0fe6
mv: manages the 'seen' file list before moving
...
Should help with tests/mv/childproof.sh
2023-12-23 13:07:39 +01:00
Daniel Hofstetter
1c6317af76
mv: allow dest with slash when using --update
2023-12-22 17:03:59 +01:00
Daniel Hofstetter
6fb3bbb8a0
mv: rename two tests
2023-12-13 14:27:19 +01:00
Daniel Hofstetter
8e796d3bb6
mv: fix issue with -T and dest ending with "/"
2023-11-19 15:10:28 +01:00
Mick van Gelderen
5c100dd088
mv: Fix stderr output mv file into dir and dir into file where both are files ( #5464 )
...
* Add tests mv file into dir and dir into file where both are files
* Fix test_mv_dir_into_file_where_both_are_files
* Fix test_mv_file_into_dir_where_both_are_files
* Store String in error instead of PathBuf
* Implement path_ends_with_terminator for windows
* Fix compilation on windows
2023-10-28 15:04:51 +02:00
David Matos
769eb29cd3
mv: moving directory itself should fail ( #5429 )
...
* mv: moving directory itself should fail
* mv: Check trailing slash also fails on target containing itself
* mv: add "spell-checker:ignore mydir" to test
---------
Co-authored-by: Daniel Hofstetter <daniel.hofstetter@42dh.com>
2023-10-24 10:54:23 +02:00
Daniel Hofstetter
54ba81ecbb
mv: fix typo in test function name
...
test_mv_info_self -> test_mv_into_self
2023-10-03 15:09:20 +02:00
Daniel Hofstetter
fda762b91c
mv: show no "skipped" msg with -vi/-vin
2023-10-02 14:50:29 +02:00
Sylvestre Ledru
0b9c829bce
Merge pull request #5182 from sylvestre/clippy_
...
Fix some of the recent clippy warnings
2023-08-21 16:21:02 -04:00
Sylvestre Ledru
bfca6bf70f
Add license headers on all files
2023-08-21 10:49:27 +02:00
Sylvestre Ledru
7c9f4ba92a
Fix some clippy warnings
2023-08-21 08:41:40 +02:00
Sylvestre Ledru
40c598852b
mv: add the check with --b=simple and when the source is a backup
2023-06-28 23:11:28 +02:00
Rayhan Faizel
269ffc12b4
tests/mv: add tests to check for copying symlinks onto hardlinks to symlink
2023-06-12 23:49:28 +05:30
Rayhan Faizel
6bc15aac99
tests/mv: Test for particular edge cases when handling symlink files
2023-06-10 18:32:41 +05:30
Sylvestre Ledru
d38797bb50
mv: Show 'skipped' when a file isn't overwriten
...
Should fix tests/mv/mv-n.sh
2023-05-29 21:57:42 +02:00
Daniel Hofstetter
2f4b57ca97
mv: add missing semicolons to tests
2023-05-23 07:23:42 +02:00
Daniel Hofstetter
d769871374
Merge pull request #4831 from sylvestre/mv-hardlink
...
mv: 'mv source hardlink' should fail
2023-05-08 16:12:23 +02:00
Sylvestre Ledru
48b8cfa595
mv: adjust the tests - duplicate code + android
...
According to:
https://stackoverflow.com/questions/44913985/creating-hardlinks-and-symlinks-in-android
hardlink aren't expected to work on android + fat
2023-05-08 15:24:47 +02:00
Sylvestre Ledru
594f81a88a
mv --backup=simple a b on hard links should not fail
...
touch a
ln a b
./target/debug/coreutils mv --backup=simple a b
GNU: tests/mv/hard-4.sh
2023-05-08 13:08:20 +02:00
Sylvestre Ledru
a5a39b6ba8
mv: 'mv source hardlink' should fail
...
fixes: tests/mv/force.sh
2023-05-07 23:08:41 +02:00
Sylvestre Ledru
b94d10f080
Fix some semicolon_if_nothing_returned
2023-05-06 19:35:44 +02:00
Daniel Hofstetter
93c8623da9
mv: if more than one of -i, -n, -f, latest "wins"
2023-05-05 15:17:37 +02:00
Daniel Hofstetter
4ee1118061
Merge pull request #4823 from shinhs0506/mv-i-dir-file
...
fix tests/mv/i-5.sh
2023-05-04 13:43:05 +02:00
John Shin
84567336a8
mv: update test case so it doesn't fail
2023-05-03 23:54:28 -07:00
Daniel Hofstetter
616a166e36
Merge pull request #4820 from sylvestre/thru-dangling-2
...
cp: fix cp -f f loop when loop is a symlink loop
2023-05-04 08:20:57 +02:00
John Shin
1c8aac0883
mv: return err if response is negative when moving a dir to existing dest during an interactive mode
2023-05-03 16:05:21 -07:00
Daniel Hofstetter
923a62c6be
mv: fix function/file names in tests
2023-05-03 10:07:46 +02:00
Sylvestre Ledru
aae3f2f99c
Ride along: fix some trivial clippy warnings
2023-05-02 23:22:39 +02:00
John Shin
8ad2fa3cc1
mv: write test for multiple update args
2023-05-02 13:46:43 -07:00
John Shin
6a100976c7
mv: simplify tests for update
2023-05-02 13:30:38 -07:00
John Shin
85ded232bc
mv: resolve merge conflict
2023-04-30 20:09:32 -07:00
John Shin
78412c5a61
mv: add tests for --update
2023-04-30 19:29:49 -07:00
Sylvestre Ledru
c5fb6eac9f
Merge pull request #4794 from shinhs0506/mv-target-dir
...
mv: check if --target is a directory
2023-04-29 10:40:44 +02:00
John Shin
a93bccb5b9
mv: add tests for --target
2023-04-28 03:10:10 -07:00
Sylvestre Ledru
360cbda0c5
Merge pull request #4782 from cakebaker/mv_no_clobber_behavior_change
...
mv: adapt -n behavior to GNU mv 9.3
2023-04-26 22:47:12 +02:00
John Shin
d4630c83b4
mv: add 'renamed ' in the beginning when verbose flag is set
2023-04-25 21:27:52 -07:00
Daniel Hofstetter
804274dbf4
mv: adapt -n behavior to GNU mv 9.3
2023-04-25 11:33:48 +02:00
Daniel Hofstetter
e94f1d8eb7
mv: -i show no error if overwriting is declined
2023-04-23 15:27:24 +02:00
Daniel Hofstetter
7a888da409
tests: remove all "extern crate" statements
2023-04-10 08:31:31 +02:00
Terts Diepraam
74b54074e1
deps: bump time
from 0.3.17 to 0.3.20 ( #4643 )
2023-03-26 21:47:12 +02:00
Sylvestre Ledru
0d5daacf99
mv -i: adjust the behavior to match the GNU change
...
Matches the change upstream
7a69df88999bedd8e9fccf9f3dfa9ac6907fab66
2023-03-25 11:22:45 +01:00
Daniel Hofstetter
6988eb7ec6
tests: expand wildcard imports
2023-03-20 15:32:35 +01:00
Thayne McCombs
17f9507e17
Add tests for non-utf8
2023-02-21 22:58:39 -07:00
Daniel Hofstetter
f6b646e4e5
clippy: fix warnings introduced with Rust 1.67.0
2023-01-27 17:37:56 +01:00