Daniel Hofstetter
5c65f44957
Merge pull request #5116 from simon04/patch-1
...
tsort: use Iterator.all
2023-07-29 07:50:38 +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
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
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
Daniel Hofstetter
d40a25db5d
csplit: remove explicit "into_iter()"
2023-07-21 10:52:03 +02:00
Daniel Hofstetter
aef130dae7
nl: show error if --join-blank-lines is zero
2023-07-20 15:26:46 +02:00
Daniel Hofstetter
013e94522e
nl: shorten variants of NumberingStyle enum
2023-07-20 09:45:21 +02: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
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
Daniel Hofstetter
cf29f3f452
Merge pull request #5093 from sylvestre/fix-man-coreutils
...
Improve the coreutils manpage
2023-07-18 15:13:39 +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
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
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
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
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
Daniel Hofstetter
5d03d2d9d4
clippy: fix warnings introduced by Rust 1.71.0
2023-07-13 17:35: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
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
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
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
John Shin
e5331e3abb
Merge branch 'main' into ls-version-cmp
2023-07-09 14:36:46 -07:00
Daniel Hofstetter
f67ef7fb11
nl: change value name to match help text
2023-07-09 16:08:38 +02:00
Daniel Hofstetter
f8a955266e
Merge pull request #4750 from NikolaiSch/seq-panic-fix
...
fix: seq panic on no arguments #4749
2023-07-09 14:19:07 +02:00
Daniel Hofstetter
0b37b63ea3
Merge pull request #5055 from yt2b/ls_literal_option
...
ls: --l should output the same as --literal
2023-07-09 14:07:24 +02:00
Sylvestre Ledru
10bca71b09
Merge branch 'main' into ls-version-cmp
2023-07-09 09:24:39 +02:00
Sylvestre Ledru
78fd0efab9
Merge pull request #5013 from shinhs0506/core-version-cmp
...
uucore: leading zeros are ignored in version compare
2023-07-09 09:21:18 +02:00
Daniel Hofstetter
6f91371e61
touch: accept "modify" & "mtime" for --time arg
2023-07-08 16:13:35 +02:00
Terts Diepraam
24c2743e10
Merge pull request #5053 from dezgeg/stty-baudrate
...
stty: Support setting baud rate
2023-07-08 13:27:56 +02:00
Tuomas Tynkkynen
bde9030e4e
stty: Support setting baud rate
...
Part of #3859 .
2023-07-08 11:46:16 +03:00
yt2b
cf6f7856e4
ls: fix --l option
2023-07-08 10:43:20 +09:00
Tuomas Tynkkynen
85b9b61dd8
stty: Finish '--save' support
...
Argument parsing for this exists, but the option doesn't change output
in any way. Finish the support.
Closes #3862
2023-07-08 02:24:26 +03:00
Daniel Hofstetter
ac4ff2ac0e
seq: simplify error handling
...
Co-authored-by: Terts Diepraam <terts.diepraam@gmail.com>
2023-07-06 10:26:29 +02:00
John Shin
844cbdc5a4
sort: add tests for stable and unstable sort
2023-07-05 10:05:52 +02:00
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