Commit graph

11077 commits

Author SHA1 Message Date
Daniel Hofstetter
8d5404cb57
Merge pull request #5099 from uutils/renovate/rlimit-0.x
chore(deps): update rust crate rlimit to 0.10.1
2023-07-20 08:04:08 +02:00
renovate[bot]
15a95b46db
chore(deps): update rust crate rlimit to 0.10.1 2023-07-19 22:20:31 +00:00
Daniel Hofstetter
d7d2ad52db nl: fix zero padding of negative line numbers 2023-07-19 16:22:53 +02:00
Sylvestre Ledru
e15e03a2bf
Merge pull request #5091 from cakebaker/nl_fix_output_of_line_numbers
nl: fix calculation of line number lengths
2023-07-19 15:39:35 +02:00
Daniel Hofstetter
9080645cb9
Merge pull request #5097 from uutils/renovate/signal-hook-0.x
chore(deps): update rust crate signal-hook to 0.3.17
2023-07-19 07:41:12 +02:00
Sylvestre Ledru
0126f20926
Merge pull request #5089 from cakebaker/cat_remove_long_version_of_t_arg
cat: remove --t
2023-07-18 19:35:06 +02:00
renovate[bot]
427bec8b88
chore(deps): update rust crate signal-hook to 0.3.17 2023-07-18 17:13:29 +00:00
Daniel Hofstetter
cf29f3f452
Merge pull request #5093 from sylvestre/fix-man-coreutils
Improve the coreutils manpage
2023-07-18 15:13:39 +02:00
Daniel Hofstetter
0f6058a25a
Merge pull request #5092 from sylvestre/make
make: split the manpage / completions generation into their target
2023-07-18 13:54:09 +02:00
Terts Diepraam
964b1d6e10 mktemp: fix both_tmpdir_flags_present test on windows 2023-07-18 12:46:05 +02:00
Thayne McCombs
536db164bf Fix mktemp test for windows 2023-07-18 12:46:05 +02:00
Thayne McCombs
6262a3e9d9 Add tests for mktemp tmpdir flags
And set overrides_with for tmpdir flags.

Tests were copied from #4275

Co-authored-by: David Matos <davidmatos06@gmail.com>
2023-07-18 12:46:05 +02:00
Thayne McCombs
b77a08c134 Require = for --tmpdir in mktemp
Fixes #3454

This implementation more closely matches the behavior of GNU mktemp. Specifically,
if using the short-form `-p`, then DIR is required, and if using the long form `--tmpdir`
then DIR is optional, but if provided, must use the `--tmpdir=DIR` form (not `--tempdir DIR`),
so that there is no ambiguity with also passing a TEMPLATE.

The downside to this implementation is we are now introducing a new workaround for
https://github.com/clap-rs/clap/issues/4702 where we use separate calls to `.arg()` for
the short `-p` and the long `--tmpdir`, which results in a less than ideal output for `--help`.
2023-07-18 12:46:05 +02:00
Daniel Hofstetter
27ee279913 nl: fix calculation of line number lengths 2023-07-18 09:30:23 +02:00
Sylvestre Ledru
83c8517142 coreutils multicall: the manpage subcommand doesn't display the right command
see https://manpages.debian.org/unstable/rust-coreutils/rust-coreutils.1.en.html
2023-07-17 22:46:34 +02:00
Sylvestre Ledru
7d44e96713 coreutils multicall: Sort the command by alphabetic order (for the man) 2023-07-17 22:45:52 +02:00
Sylvestre Ledru
69f74433b5 make: split the manpage / completions generation into their target
Thanks to this, it is easier to generate these files:
* make manpages
* make completions
2023-07-17 19:06:06 +02:00
Sylvestre Ledru
1d171b5166
Merge pull request #5060 from dezgeg/stty-control-chars
stty: Implement printing assignment of control chars
2023-07-17 09:13:46 +02:00
Sylvestre Ledru
e3f8f2ab25
Merge pull request #5090 from starccy/fix-shell-script-style
"style(util): fix/format scripts to meet the `shellcheck`/`shfmt` rules"
2023-07-17 09:13:30 +02:00
Starccy
b6ec498e0e "style: fix/format scripts to meet the shellcheck/shfmt rules" 2023-07-17 10:53:44 +08:00
Tuomas Tynkkynen
96dbd6d386 stty: Implement printing assignment of control chars
Part of #3861.

Code comments from sylvestre.

Co-authored-by: Sylvestre Ledru <sledru@mozilla.com>
2023-07-16 17:49:23 +03:00
Daniel Hofstetter
373035fa08 cat: remove --t 2023-07-16 16:48:01 +02:00
Sylvestre Ledru
1b4ef90e25
Merge pull request #5077 from starccy/ci-checkshell-workflow
ci: Add a new workflow to check and format shell scripts in `util` dir
2023-07-16 10:06:28 +02:00
Sylvestre Ledru
cc2205d259
Merge pull request #5087 from uutils/renovate/signal-hook-0.x
chore(deps): update rust crate signal-hook to 0.3.16
2023-07-15 12:29:45 +02:00
renovate[bot]
831404406c
chore(deps): update rust crate signal-hook to 0.3.16 2023-07-15 09:18:10 +00:00
Sylvestre Ledru
c851d3c5dc
Merge pull request #5086 from shinhs0506/factor-vec
uucore: provide capacity for vectors
2023-07-15 10:05:26 +02:00
John Shin
beee15cbb9 Merge branch 'factor-vec' of https://github.com/shinhs0506/coreutils into factor-vec 2023-07-14 22:48:17 -07:00
John Shin
596fe4f66f uucore: provide capacity for vectors 2023-07-14 22:45:49 -07:00
John Shin
3de48dcde8 uucore: provide capacity for vectors 2023-07-14 21:05:12 -07:00
Sylvestre Ledru
78fed70982
Merge pull request #5078 from cakebaker/nl_allow_negative_values_for_i_and_v
nl: allow negative values for --line-increment and --starting-line-number
2023-07-15 00:21:51 +02:00
Sylvestre Ledru
032f921cb3
Merge pull request #5084 from theoludwig/docs-fix-broken-arch-link
docs: fix broken Arch package link
2023-07-15 00:21:14 +02:00
Sylvestre Ledru
6f67c90032
Merge pull request #5081 from cakebaker/ci_add_default_trait_access_lint
ci: add default_trait_access lint and fix its warnings
2023-07-15 00:20:53 +02:00
Sylvestre Ledru
9f2abc0a5b
Merge pull request #5085 from theoludwig/docs-fix-github-link
docs: github repo link related to uutils/coreutils
2023-07-15 00:20:22 +02:00
Théo LUDWIG
7742e0f603
docs: github repo link related to uutils/coreutils 2023-07-14 20:25:12 +02:00
Théo LUDWIG
00e68876fc
docs: fix broken Arch package link 2023-07-14 20:15:27 +02:00
Sylvestre Ledru
8093d81dac
Merge pull request #5082 from sylvestre/version
Update the version to 0.0.20
2023-07-14 14:07:20 +02:00
Daniel Hofstetter
a0f527c2aa ci: add default_trait_access lint to CICD.yml 2023-07-14 13:41:16 +02:00
Daniel Hofstetter
424d51285c clippy: fix default_trait_access lint warnings 2023-07-14 13:41:06 +02:00
Sylvestre Ledru
74530c0f51 Update the version to 0.0.20 2023-07-14 13:04:17 +02:00
Daniel Hofstetter
388f249716 nl: allow negative values for -i and -v 2023-07-14 12:31:17 +02:00
Sylvestre Ledru
ec1d2fba33
Merge pull request #5079 from cakebaker/clippy_fix_warnings_rust_1_71_0
clippy: fix warnings introduced by Rust 1.71.0
2023-07-14 11:47:34 +02:00
Daniel Hofstetter
5d03d2d9d4 clippy: fix warnings introduced by Rust 1.71.0 2023-07-13 17:35:33 +02:00
Sylvestre Ledru
0ee92981c4
Merge pull request #5076 from cakebaker/deny_toml_remove_mpl
deny.toml: remove MPL license from allow list
2023-07-13 10:46:53 +02:00
Daniel Hofstetter
3e688461ba
Merge pull request #5075 from cakebaker/bump_pretty_assertions
Bump pretty_assertions from 1.3.0 to 1.4.0
2023-07-13 10:33:59 +02:00
Roy Ivy III
97a369c755 deny.toml: remove MPL license from allow list 2023-07-13 10:25:16 +02:00
Starccy
1ba5034035 chore: add new workflow to check shell scripts 2023-07-13 15:32:25 +08:00
Daniel Hofstetter
e7dc201f16 Bump pretty_assertions from 1.3.0 to 1.4.0 2023-07-13 09:29:33 +02:00
Sylvestre Ledru
1897c18e88
Merge pull request #5073 from cakebaker/nl_add_test_for_number_separator
nl: add test for "--number-separator"
2023-07-12 22:42:01 +02:00
Sylvestre Ledru
bd4ecb6cfb
Merge pull request #5074 from Skryptonyte/ls_clampwidth
ls: Limit value of --width to maximum value if overflowing
2023-07-12 21:04:26 +02:00
Rayhan Faizel
9e26534239 tests/ls: Test overflowing decimal and octal values of --width 2023-07-12 23:24:26 +05:30