Terts Diepraam
f117fc1bab
printf rewrite: fix compilation
2023-10-28 17:36:43 +02:00
Terts Diepraam
28810906a3
Merge branch 'main' into printf-rewrite
2023-10-28 16:35:58 +02: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
Daniel Hofstetter
32b335a73a
mv: rename canonized_* -> canonicalized_*
2023-10-25 16:46:33 +02:00
Daniel Hofstetter
6085cf12e3
Merge pull request #5353 from tommady/fix-5327
...
cp: fix cp -a --no-preserve=mode doesn't keep fully the mode
2023-10-25 13:34:45 +02:00
Terts Diepraam
96d0830952
Merge pull request #5446 from cakebaker/ls_try_get_matches_from
...
ls: use try_get_matches_from instead of get_matches_from
2023-10-25 11:25:40 +02:00
Daniel Hofstetter
f8a30d524e
cp: rename handling_no_preserve_mode
...
to handle_no_preserve_mode
2023-10-25 10:43:23 +02:00
Daniel Hofstetter
086f7b548c
cp: replace word in comment
2023-10-25 10:20:01 +02:00
Daniel Hofstetter
6f84e56e28
ls: return exit code 2 for invalid time-style
2023-10-24 16:33:04 +02:00
Daniel Hofstetter
fd18d2686f
ls: return exit code 2 for -l --dired --zero
2023-10-24 14:48:24 +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
d7b7dfeb16
ls: use try_get_matches_from instead of
...
get_matches_from to replace clap's exit code
2023-10-24 10:07:28 +02:00
Yury Zhytkou
a3fed79b5c
split
: suffix auto length (#5433 )
2023-10-23 22:47:39 +02:00
Sylvestre Ledru
209ffe831d
Merge pull request #5441 from n1000/test_ot_fix
...
test: use mtime for -ot and fix direction of comparison
2023-10-23 20:59:30 +02:00
Daniel Hofstetter
aa2e9c11bc
Merge pull request #5439 from sylvestre/runcon-error
...
runcon: generate the same error as GNUs
2023-10-23 07:28:23 +02:00
Nathan Houghton
dbfd700502
test: use mtime for -ot and fix direction of comparison
...
- Use the file modification time instead of the creation time (matches
GNU coreutils documentation)
- Fix direction of comparison (a < b instead of a > b)
- Extend test case to cover both the 0 and 1 exit code cases
2023-10-22 17:44:40 -07:00
Sylvestre Ledru
03d598d08b
Merge pull request #5430 from cakebaker/cp_remove_destination_shouldnt_fail
...
cp --remove-destination: don't fail if destination is symlink to source
2023-10-22 22:17:32 +02:00
Sylvestre Ledru
897af02d9d
runcon: generate the same error as GNUs
...
tested in tests/runcon/runcon-no-reorder.sh
2023-10-22 21:43:49 +02:00
Sylvestre Ledru
4472acf909
ls --dired: document the whole thing
2023-10-20 13:29:38 +02:00
Daniel Hofstetter
772892e2e4
cp: --rem don't fail if dest is symlink to source
2023-10-20 09:41:30 +02:00
Yury Zhytkou
eede467e21
split
: --filter
and stdin updates (#5418 )
2023-10-20 08:47:32 +02:00
Sylvestre Ledru
f971a69d69
ls --dired -R: fix the positions ( #5341 )
...
* move get_offset_from_previous_line into a specific function
* dired: improve the -R support
* dired: fix the display with subdir
* ls --dired -R: fix the positions
* ls --dired -R: verify also the SUBDIRED coordinate
* ls --dired -R: add a long file name and fix a windows test
* dired: always put dired first in the args + minor fixes
Co-authored-by: Daniel Hofstetter <daniel.hofstetter@42dh.com>
* ls: add cognitive_complexity to silent a warning
---------
Co-authored-by: Daniel Hofstetter <daniel.hofstetter@42dh.com>
2023-10-19 14:17:34 +02:00
Daniel Hofstetter
383dcde51a
mv: comment why some imports are public
2023-10-19 10:08:45 +02:00
David Matos
90c2dbb0cc
mv: make UpdateMode public
2023-10-19 09:50:21 +02:00
Daniel Hofstetter
a3c6d6d91e
Merge pull request #5423 from Luv-Ray/fix-pathchk-issue5314
...
`pathchk`: check empty path by default
2023-10-19 09:33:42 +02:00
Sylvestre Ledru
4573eb693f
Merge pull request #5357 from zhitkoff/issue5334-uucore-parse-r-q
...
Implement SI prefixes R and Q
2023-10-18 18:55:17 +02:00
Zhuoxun Yang
1ab8555a94
pathchk: check empty path
2023-10-18 22:50:43 +08:00
Daniel Hofstetter
a2defd1a21
uucore: remove incorrect comment
2023-10-18 16:34:35 +02:00
Daniel Hofstetter
7a608196dc
Merge pull request #5356 from terade/refactoring_prompt_file
...
`rm`: refactor `prompt_file`, issue #5345
2023-10-18 07:04:22 +02:00
terade
b6a6a4dc65
rm: apply suggestion of retrieving metatada in function
2023-10-17 17:26:27 +02:00
zhitkoff
abc95361a5
prase_size: comments
2023-10-17 10:50:50 -04:00
zhitkoff
74e01e3987
parse_size: more test case coverage
2023-10-17 10:50:50 -04:00
zhitkoff
cb7479e823
uucore: implement SI suffixes R and Q
2023-10-17 10:50:50 -04:00
Zhuoxun Yang
d325a952ee
expr: return "0" for |
2023-10-17 22:27:47 +08:00
Zhuoxun Yang
8a67224917
expr: add assert for &
2023-10-17 22:27:10 +08:00
Daniel Hofstetter
ce0cf7a569
Merge pull request #5367 from sylvestre/join
...
join: remove a clippy::cognitive_complexity by moving some content in functions
2023-10-16 11:41:47 +02:00
Sylvestre Ledru
f8436728dc
add field_reassign_with_default ignore
...
Co-authored-by: Daniel Hofstetter <daniel.hofstetter@42dh.com>
2023-10-16 10:47:38 +02:00
Daniel Hofstetter
541ac6a813
Merge pull request #5403 from sylvestre/rm
...
rm: In some cases, remove_dir is doing a better job than remove_dir_all
2023-10-16 09:35:44 +02:00
Sylvestre Ledru
3a780453a9
join: remove a clippy::cognitive_complexity by moving some content into functions
2023-10-16 08:15:02 +02:00
renovate[bot]
c892c9346f
fix(deps): update rust crate dns-lookup to 2.0.4
2023-10-15 17:59:54 +00:00
Sylvestre Ledru
73b7c46131
Merge pull request #5409 from sylvestre/version-22
...
0.0.21 => 0.0.22
2023-10-15 15:50:01 +02:00
Sylvestre Ledru
e1bd47d549
0.0.21 => 0.0.22
2023-10-15 14:33:23 +02:00
Daniel Hofstetter
6ef5b272da
expr: add missing word to comment
2023-10-15 14:30:17 +02:00
Zhuoxun Yang
4f20773b4f
expr: fix escape
2023-10-14 23:20:45 +08:00
Sylvestre Ledru
226680aa00
Ignore inacc spell
2023-10-14 13:45:29 +02:00
Sylvestre Ledru
505ef714b9
rm: In some cases, remove_dir is doing a better job than remove_dir_all
...
use it when remove_dir_all failed
GNU compatibility (rm/empty-inacc.sh)
2023-10-14 12:09:27 +02:00
Zhuoxun Yang
ae1c4ccfd2
expr: short-circuit evaluation for &
2023-10-14 01:56:38 +08:00
Daniel Hofstetter
5f4305df6f
Merge pull request #5394 from sylvestre/fs
...
fs: split get_file_display into its function & add test
2023-10-13 16:51:56 +02:00
Sylvestre Ledru
3cd5f9d175
Merge pull request #5401 from cakebaker/clippy_suppress_cognitive_complexity_warning
...
clippy: suppress cognitive_complexity lint in some tests
2023-10-13 15:41:35 +02:00
Daniel Hofstetter
a69d48fb8c
clippy: suppress cognitive_complexity lint
2023-10-13 14:53:32 +02:00