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
Rayhan Faizel
504b9e15a0
Clamp overflowing values in --width to maximum
2023-07-12 23:23:58 +05:30
Daniel Hofstetter
20b1f11daa
nl: add test for "--number-separator"
...
and replace "match" with "if let"
2023-07-12 15:25:02 +02:00
Daniel Hofstetter
5d2a2954be
Merge pull request #5071 from sylvestre/platform
...
update platform-info 2.0.2
2023-07-12 10:27:10 +02:00
Sylvestre Ledru
a1b4d25d0e
Merge pull request #5065 from cakebaker/nl_number_width_zero
...
nl: show error if --number-width is zero
2023-07-12 09:08:37 +02:00
Sylvestre Ledru
697866ae3a
update platform-info 2.0.2
2023-07-12 09:06:14 +02:00
Daniel Hofstetter
826adc62aa
nl: show error if --number-width is zero
...
Co-authored-by: Sylvestre Ledru <sylvestre@debian.org>
2023-07-11 17:45:53 +02:00
Sylvestre Ledru
8e8b825b45
Merge pull request #5063 from cakebaker/nl_use_value_parser_for_number_format
...
nl: use value parser for "--number-format"
2023-07-11 17:10:20 +02:00
Sylvestre Ledru
e339e53318
Merge pull request #5070 from cakebaker/nl_after_help
...
nl: add "after help"
2023-07-11 15:01:16 +02:00
Daniel Hofstetter
eb2123ee15
nl: add "after help"
2023-07-11 14:26:54 +02:00
Daniel Hofstetter
cb50208909
nl: use value parser for "--number-format"
2023-07-10 11:20:37 +02:00
Sylvestre Ledru
bf30cbf4f6
Merge pull request #5038 from shinhs0506/ls-version-cmp
...
ls: fix version cmp
2023-07-10 08:44:57 +02:00