Commit graph

10755 commits

Author SHA1 Message Date
Daniel Hofstetter
5c65f44957
Merge pull request #5116 from simon04/patch-1
tsort: use Iterator.all
2023-07-29 07:50:38 +02:00
Daniel Hofstetter
a34eb43085
Merge pull request #5117 from shinhs0506/is-empty
use is_empty()
2023-07-29 07:31:02 +02:00
John Shin
426cce7df0 rmdir: use is_empty() 2023-07-28 17:10:36 -07:00
John Shin
0d56792c58 mv: use is_empty() 2023-07-28 17:09:23 -07:00
Simon Legner
24319791ec
tsort: use Iterator.all 2023-07-28 21:25:11 +02:00
Daniel Hofstetter
b24f91c4d6
Merge pull request #4600 from tertsdiepraam/touch-move-from-time-to-chrono
`touch`: move from `time` to `chrono`
2023-07-27 17:57:51 +02:00
Terts Diepraam
c2997718cd touch: move from time to chrono
This allows us to work with daylight savings time which is necessary to enable one of the tests. The leap second calculation and parsing are also ported over. A bump in the chrono version is necessary to use NaiveTime::MIN.
2023-07-27 17:06:38 +02:00
Sylvestre Ledru
4004281f34
Merge pull request #5100 from cakebaker/nl_shorten_enum_variants
nl: shorten variants of NumberingStyle enum
2023-07-25 20:18:55 +02:00
Sylvestre Ledru
9449eda51d
Merge pull request #5103 from cakebaker/nl_join_blank_lines_show_error_if_zero
nl: show error if --join-blank-lines is zero
2023-07-25 20:18:43 +02:00
Sylvestre Ledru
df74d8e877
Merge pull request #5112 from sylvestre/selinux-no-mac
only set SELINUX_ENABLED=1 on Linux
2023-07-25 20:17:43 +02:00
Sylvestre Ledru
b576fcb70e
Merge pull request #5113 from cakebaker/bump_unicode_linebreak
Bump unicode-linebreak from 0.1.4 to 0.1.5
2023-07-25 20:17:19 +02:00
Daniel Hofstetter
8a58b0ae74 deny.toml: remove hashbrown from skip list 2023-07-25 14:22:19 +02:00
Daniel Hofstetter
1642509302 Bump unicode-linebreak from 0.1.4 to 0.1.5 2023-07-25 14:20:48 +02:00
Sylvestre Ledru
f50cde252b only set SELINUX_ENABLED=1 on Linux 2023-07-24 21:30:23 +02:00
Daniel Hofstetter
6f37cb1684
Merge pull request #5111 from uutils/renovate/lscolors-0.x
chore(deps): update rust crate lscolors to 0.15.0
2023-07-24 15:16:31 +02:00
Sylvestre Ledru
a2296759da
Merge pull request #5110 from cakebaker/uucore_use_workspace
uucore: use "workspace=true" for some dependencies
2023-07-24 14:40:35 +02:00
renovate[bot]
781c915ba9
chore(deps): update rust crate lscolors to 0.15.0 2023-07-24 12:18:40 +00:00
Daniel Hofstetter
fe9ec37141 uucore: use "workspace=true" for some dependencies 2023-07-22 16:14:32 +02:00
Sylvestre Ledru
e77a1bf54c
Merge pull request #4342 from tmccombs/mktemp-req-equals
Require = for --tmpdir in mktemp
2023-07-21 14:36:25 +02:00
Sylvestre Ledru
15b3bf69a3
Merge pull request #5109 from cakebaker/csplit_remove_into_iter
csplit: remove explicit "into_iter()"
2023-07-21 12:10:32 +02:00
Daniel Hofstetter
d40a25db5d csplit: remove explicit "into_iter()" 2023-07-21 10:52:03 +02:00
Daniel Hofstetter
95cfa94b1b
Merge pull request #5105 from uutils/sylvestre-patch-2
Add the Perl Power Tools impl
2023-07-21 07:49:24 +02:00
Daniel Hofstetter
d00c7be859
Merge pull request #5108 from uutils/renovate/num-traits-0.x
chore(deps): update rust crate num-traits to 0.2.16
2023-07-21 07:41:43 +02:00
renovate[bot]
6b95aabaa2
chore(deps): update rust crate num-traits to 0.2.16 2023-07-21 01:07:21 +00:00
Sylvestre Ledru
6e28b3d8ad
Add the Perl Power Tools impl
Thanks Jarkko Hietaniemi
2023-07-20 19:29:03 +02:00
Sylvestre Ledru
91e1ddeea3
Merge pull request #5098 from cakebaker/nl_fix_zero_padding_of_negative_line_numbers
nl: fix zero padding of negative line numbers
2023-07-20 18:06:30 +02:00
Daniel Hofstetter
aef130dae7 nl: show error if --join-blank-lines is zero 2023-07-20 15:26:46 +02:00
Sylvestre Ledru
2c2374de0e
Merge pull request #5101 from miles170/make-uninstall-man-pages
make: uninstall man pages
2023-07-20 11:31:22 +02:00
Miles Liu
749a2476f4
make: uninstall man pages 2023-07-20 16:24:48 +08:00
Daniel Hofstetter
013e94522e nl: shorten variants of NumberingStyle enum 2023-07-20 09:45:21 +02:00
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