Commit graph

10610 commits

Author SHA1 Message Date
John Shin
e9405250f4 uucore: leading zeros are ignored in version compare 2023-07-05 10:05:52 +02:00
Daniel Hofstetter
4a192e98d5
Merge pull request #5032 from sylvestre/split-fail
split: reject some invalid values
2023-07-05 07:04:22 +02:00
Sylvestre Ledru
9d44d8b71d
Merge pull request #4977 from cakebaker/date_shortcut_value_parser
date: use custom value parser
2023-07-04 19:56:46 +02:00
Sylvestre Ledru
264d29a169
fix the clippy warning 2023-07-04 18:45:11 +02:00
Sylvestre Ledru
0ea92cc8cd
Merge pull request #5037 from cakebaker/bump_hermit_abi_and_num_cpus
Bump hermit-abi and num_cpus
2023-07-04 18:43:06 +02:00
Daniel Hofstetter
9ac31e057d deny.toml: remove hermit-abi from skip list 2023-07-04 16:42:25 +02:00
Daniel Hofstetter
66afeef84a Bump hermit-abi and num_cpus
hermit-abi from 0.3.1 -> 0.3.2
num_cpus from 1.14.0 -> 1.16.0
2023-07-04 16:40:58 +02:00
Terts Diepraam
c455aa0922
Merge pull request #5036 from cakebaker/nl_fix_no_renumber
nl: make -p/--no-renumber a flag
2023-07-04 14:16:04 +02:00
Daniel Hofstetter
56d4999843
Merge pull request #5035 from uutils/renovate/rlimit-0.x
chore(deps): update rust crate rlimit to 0.10.0
2023-07-04 10:57:32 +02:00
Sylvestre Ledru
4cd4df2880
Merge pull request #5034 from cakebaker/numfmt_possible_values_are_shown_twice
numfmt: remove duplicate info from help output
2023-07-04 10:50:13 +02:00
Daniel Hofstetter
fee5225cb6 nl: make --no-renumber a flag 2023-07-04 10:37:10 +02:00
renovate[bot]
8e2401c8ee
chore(deps): update rust crate rlimit to 0.10.0 2023-07-04 07:39:59 +00:00
Daniel Hofstetter
18e5c5b5f7 numfmt: remove duplicate info from help output 2023-07-04 07:02:18 +02:00
Sylvestre Ledru
d033db3573 split: reject some invalid values
Matches what is done in tests/split/fail.sh
(still doesn't work)
2023-07-03 22:57:37 +02:00
Sylvestre Ledru
6e3ab23183
Merge pull request #5017 from cakebaker/df_disable_some_tests_on_windows
df: disable failing tests on Windows
2023-07-03 16:27:00 +02:00
Sylvestre Ledru
37cbfd1efd
Merge pull request #5030 from cakebaker/touch_use_parse_datetime
touch: use parse_datetime instead of humantime_to_duration
2023-07-03 16:26:51 +02:00
Daniel Hofstetter
11b098fce1
Merge pull request #5028 from sylvestre/cp-multiple
cp: allow multiple usages of -R - Closes: #5027
2023-07-03 16:09:45 +02:00
Daniel Hofstetter
e6ec1490aa touch: use parse_datetime in Cargo.lock 2023-07-03 14:28:39 +02:00
Sylvestre Ledru
e491bbdbed cp: allow multiple usages of -R/-r Closes: #5027
works for all other rm args
2023-07-03 14:19:45 +02:00
Roy Ivy III
af64bde92b fix/touch ~ time crate usage errors 2023-07-03 14:15:15 +02:00
Sylvestre Ledru
7a7842b5b8
Merge pull request #4756 from Joining7943/tail-refactor-and-fix-input
`tail`: Refactor `paths::Input::from` and `Settings::inputs`
2023-07-03 14:09:57 +02:00
Roy Ivy III
9aef5ac35b deps ~ change from 'humantime_to_duration' to 'parse_datetime' 2023-07-03 13:53:52 +02:00
Terts Diepraam
5a667db43d tail: clean up some small things in input parsing 2023-07-03 13:20:48 +02:00
Sylvestre Ledru
a5272e1344
Merge pull request #5029 from cakebaker/cp_use_mkdir_all_instead_of_mkdir
cp: use mkdir_all() instead of mkdir() in test
2023-07-03 10:27:18 +02:00
Daniel Hofstetter
ba509a1489 cp: use mkdir_all() instead of mkdir() in test 2023-07-03 09:24:37 +02:00
sbentmar
42bf580f13
numfmt: add --invalid option (#4249)
* numfmt: add invalid option

* numfmt: return code 0 if ignore or warn

* numfmt: implement all --invalid modes

* numfmt: validate stdout and stderr

* numfmt: remove unnecessary code

* numfmt: apply formatting

* numfmt: fix clippy issues

* numfmt: fix failing test cases

* numfmt: fix formatting

* numfmt: fix bug when handling broken pipe

* numfmt: fix bug where extra newline was added

* numfmt: add test cases for edge cases

* numfmt: simplify error handling

* numfmt: remove redundant if

* numfmt: add newline between functions

* numfmt: fix failing test cases

* numfmt: add support for arg numbers using --invalid

* numfmt: simplify error handling in value handlers

* numfmt: fix merge conflict and align prints

* numfmt: fix clippy suggestion

* numfmt: replace "valid" with "invalid" in tests

* numfmt: move INVALID to respect alph. order

* numfmt: move printlns outside of match to avoid duplication

Co-authored-by: Sylvestre Ledru <sledru@mozilla.com>

* numfmt: remove empty line

---------

Co-authored-by: Daniel Hofstetter <daniel.hofstetter@42dh.com>
Co-authored-by: Sylvestre Ledru <sledru@mozilla.com>
2023-07-01 17:08:12 +02:00
Daniel Hofstetter
a145798594
Merge pull request #4960 from granquet/ls_LZ
ls: force fetching metadata when called with -L -Z
2023-07-01 15:24:37 +02:00
Daniel Hofstetter
c524ec4a9f
Merge pull request #4950 from Ideflop/more_implement_arguments_plain_and_from_line
More implement arguments plain and from line
2023-07-01 14:18:54 +02:00
Sylvestre Ledru
043830082f
Merge pull request #5024 from cakebaker/docs_add_ls_long_to_extensions
docs: add "ls --long" to extensions
2023-06-30 15:57:19 +02:00
Daniel Hofstetter
4cdff3ba89 docs: add "ls --long" to extensions 2023-06-30 10:31:47 +02:00
Daniel Hofstetter
2f6a87b1d4
Merge pull request #5022 from crapstones-forks/crapStone-patch-1
dd: fix typos
2023-06-29 18:00:45 +02:00
crapStone
863f91eca9
fix typos
some arguments had the wrong case
2023-06-29 15:34:19 +00:00
Daniel Hofstetter
4ec73aa184
Merge pull request #5019 from sargas/explain-gnu-build-clone
util/build-gnu.sh: Improve error message when missing GNU Coreutils repository
2023-06-29 16:38:31 +02:00
Daniel Hofstetter
610e0461e9
Merge pull request #5020 from indygreg/hashsum-file-stem
hashsum: use file_stem() instead of file_name()
2023-06-29 13:50:30 +02:00
Daniel Hofstetter
5b18c53c9d
Merge pull request #4999 from sylvestre/mv-backup-src
mv: add the check with --b=simple and when the source is a backup
2023-06-29 13:19:40 +02:00
Joseph Jon Booker
9bf1fb5838 util/build-gnu.sh reword error w/o gnu coreutils
For a new contributor, the message given by `utils/build-gnu.sh` is
fairly confusing - it starts with several lines of noise (showing
variables that are set in the script) followed by an error about missing
"GNU" and a `git` command string.

This commit changes the script to explicitly instruct the user to run
the `git clone` command. Since the GNU coreutils repository is probably
missing for new developers, this error is shown if the repository is
missing without including VARIABLE=value lines that are not actionable
yet.
2023-06-29 10:50:15 +02:00
Gregory Szorc
a7f95d5a23 hashsum: use file_stem() instead of file_name()
This program matches the binary name to determine which
algorithm to use. On Windows, `file_name()` was matching
against a string with `.exe`, causing binaries like
`sha256sum.exe` to not properly detect the algorithm.

By using `file_stem()`, we exclude the `.exe` from matching,
achieving similar and correct behavior on Windows.
2023-06-29 10:50:10 +02:00
Sylvestre Ledru
5c10180f6d
Merge pull request #5021 from cakebaker/bump_proc_macro2
Bump proc-macro2 from 1.0.47 to 1.0.63
2023-06-29 10:40:31 +02:00
Daniel Hofstetter
5a1829e897 Bump proc-macro2 from 1.0.47 to 1.0.63 2023-06-29 10:18:50 +02:00
Daniel Hofstetter
3357aa87a1
Merge pull request #5018 from sylvestre/memmap2
Move memmap2 in the root workpace
2023-06-29 09:31:04 +02:00
Sylvestre Ledru
682e0e3750
Merge pull request #5012 from cakebaker/seq_rename_widths_to_equal_width
seq: rename "--widths" to "--equal-width"
2023-06-28 23:24:47 +02:00
Sylvestre Ledru
14e5f89a0e Move memmap2 in the root workpace 2023-06-28 23:16:16 +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
Sylvestre Ledru
24aff229da Add a function to detect if file is likely to be the simple backup file 2023-06-28 23:11:25 +02:00
Daniel Hofstetter
2d76a3b88e df: disable failing tests on Windows 2023-06-28 14:43:35 +02:00
Sylvestre Ledru
5ce7ae56b6
Merge pull request #5016 from cakebaker/cp_fix_unused_var_warning_on_windows
cp: fix "unused variable" warning on Windows
2023-06-27 17:56:12 +02:00
Daniel Hofstetter
732dbb3f12 cp: fix "unused variable" warning on Windows 2023-06-27 16:46:50 +02:00
Sylvestre Ledru
461047c6a6
Merge pull request #5014 from cakebaker/cp_du_fix_warnings_on_windows
cp,du: fix warnings in tests on Windows
2023-06-27 16:15:39 +02:00
Daniel Hofstetter
c99d81a05b du: fix "unused import" warning on Windows 2023-06-27 15:05:27 +02:00
Daniel Hofstetter
01f70768d9 cp: fix "unused variable" warnings on Windows 2023-06-27 14:57:06 +02:00