Daniel Hofstetter
0ef06bd82d
Merge pull request #6131 from sylvestre/0.0.26
...
Try to release 0.0.26 to see if the artifacts are generated
2024-03-31 12:47:55 +02:00
Sylvestre Ledru
b869c67d6a
Merge pull request #6150 from BenWiederhake/dev-dircolors-repeated
...
dircolors: accept repeated flags
2024-03-31 12:08:55 +02:00
Sylvestre Ledru
01ea23ba21
Try to release 0.0.26 to see if the artifacts are generated
2024-03-30 22:51:24 +01:00
Ben Wiederhake
8e794d0654
dircolors: accept repeated flags
2024-03-30 22:50:57 +01:00
Ben Wiederhake
9dbf2c362d
dirname: accept repeated flag
2024-03-30 22:50:52 +01:00
Sylvestre Ledru
c99e1c6813
Merge pull request #6025 from cre4ture/feature/dd_direct_progress
...
dd: handle SIGUSR1 directly. not just every 1sec
2024-03-30 22:36:03 +01:00
Michael Vogt
3a6bf34284
date: fix date -f dates.txt is failing
( #6148 )
...
* date: fix `date -f dates.txt is failing`
This commit is a trivial followup for:
https://github.com/uutils/coreutils/pull/4917
and
https://github.com/uutils/parse_datetime/pull/12
The functionality to parse the datetime was moved into the parse_datetime
crate and the only (tiny) piece left is to call it from `date`.
It also adds the test-case from the original issue. I did not include
the two tests from PR#4917 because they appear to work even without
this change. I am happy to include them of course if prefered.
Closes : #4657
Thanks to Ben Schofield
* tests: tweak changes to test_date.rs to be more idiomatic
Co-authored-by: Sylvestre Ledru <sylvestre@debian.org>
---------
Co-authored-by: Sylvestre Ledru <sylvestre@debian.org>
2024-03-30 15:17:10 +01:00
Daniel Hofstetter
eca8bafcc1
Merge pull request #6147 from sylvestre/tail-pid
...
tail: allow multiple usage of --pid to match upstream (regression of …
2024-03-30 14:07:33 +01:00
Daniel Hofstetter
28f7d56f6d
Merge pull request #6146 from sylvestre/mktemp
...
mktemp: adjust the error message to match 9.5
2024-03-30 08:12:15 +01:00
Sylvestre Ledru
f0286eb77d
tail: allow multiple usage of --pid to match upstream (regression of 9.5)
...
tested by tests/tail/pid
2024-03-30 07:28:31 +01:00
Sylvestre Ledru
ee198126af
mktemp: adjust the error message to match 9.5
2024-03-29 21:52:48 +01:00
Ben Wiederhake
e9045be593
tr: fix order inside class [:blank:]
2024-03-29 00:55:34 +01:00
Lucas Larson
3bf5582dbb
docs: date: Remove unimplemented example
...
also treated in #2685 and #3463
Signed-off-by: Lucas Larson <LucasLarson@riseup.net>
2024-03-26 13:44:23 -04:00
Sylvestre Ledru
2d7fa36aef
Merge pull request #6106 from sargas/fmt-negative-widths
...
fmt: allow negative widths as first argument
2024-03-25 13:43:54 +01:00
Terts Diepraam
d060134d97
uniq
: print version and help on stdout again (#6123 )
...
* uniq: print version and help on stdout again
* uniq: format test
* uniq: replace redundant closure with fn
---------
Co-authored-by: Daniel Hofstetter <daniel.hofstetter@42dh.com>
2024-03-25 09:40:36 +01:00
Terts Diepraam
e4a1455af5
Merge pull request #6114 from BenWiederhake/dev-csplit-repeated-args
...
csplit: Handle repeated args, fix remainder after error
2024-03-25 09:27:06 +01:00
Joseph Jon Booker
7b928f792c
fmt: allow negative widths as first argument
...
Also fix error messages for consistency with GNU fmt
2024-03-24 20:59:53 -05:00
Daniel Hofstetter
6f07bf10a1
Merge pull request #6112 from BenWiederhake/dev-comm-all-args
...
comm: Handle duplicated flags and output-delimiter correctly
2024-03-24 16:39:05 +01:00
Daniel Hofstetter
5803d3b683
comm: remove "comm" from error msg
2024-03-24 16:09:15 +01:00
Ben Wiederhake
388021833e
factor: correctly handle repeated flag
2024-03-24 00:07:08 +01:00
Ben Wiederhake
884ef1f54b
comm: implement and test correct handling of repeated flags
2024-03-23 23:35:40 +01:00
Ben Wiederhake
801edbbcb4
comm: implement and test correct handling of repeated --output-delimiter
2024-03-23 23:35:40 +01:00
Ben Wiederhake
1fa0b032e5
comm: permit and test separators that contain a hyphen
2024-03-23 23:35:40 +01:00
Ben Wiederhake
27fd3e5d39
csplit: do not emit remainder of input after an error
2024-03-23 23:21:53 +01:00
Ben Wiederhake
44fa2e960a
csplit: correctly handle repeated arguments
2024-03-23 23:21:53 +01:00
Sylvestre Ledru
dcb53b6c99
head: add missing features
2024-03-23 22:41:31 +01:00
Sylvestre Ledru
2246a0fad1
0.0.24 => 0.0.25
2024-03-23 22:08:05 +01:00
Sylvestre Ledru
ff1ecf6242
Merge pull request #6108 from BenWiederhake/dev-truncate-reference-create
...
truncate: correctly handle file (non-)creation
2024-03-23 18:46:16 +01:00
Ben Wiederhake
a1ad751aa9
truncate: deduplicate fifo check, fix handling of missing files
...
The fifo check used to include 'metadata(filename)?', which would error
if the file does not exist. In our case however, this is not an error.
2024-03-23 17:50:39 +01:00
Ulrich Hornung
174e9a0af9
add documentation
2024-03-23 16:51:12 +01:00
Ben Wiederhake
a3ab064f35
truncate: don't error in --no-create with reference case
2024-03-23 13:57:16 +01:00
Ulrich Hornung
a35dafcd30
consider "fullblock" cmd line arg also for block writes
2024-03-23 12:22:58 +01:00
Ulrich Hornung
a626899416
reduce cognitive complexity by splitting away part of dd_copy
2024-03-23 12:22:58 +01:00
Ulrich Hornung
43b2b3fbaa
handle SIGUSR1 directly. not just every 1sec
2024-03-23 12:22:58 +01:00
Sylvestre Ledru
6d89f96d86
shred: only run zero when the file isn't empty
2024-03-23 12:22:32 +01:00
Sylvestre Ledru
bb5111cc71
shred: fails in case of permissions issue
2024-03-23 12:22:32 +01:00
Sylvestre Ledru
844f077401
shred: as we already got the metadata info, use it directly
2024-03-23 12:22:32 +01:00
Sylvestre Ledru
f410d0967f
shred: if the file is empty, don't run passes on it
2024-03-23 12:22:32 +01:00
Sylvestre Ledru
322c2b4df6
shred: simplify the code
...
The formatting directive {:2.0} will handle both cases (single-digit and double-digit numbers)
by ensuring at least two characters wide with no decimal places
2024-03-23 12:22:32 +01:00
Sylvestre Ledru
88ff42e840
Merge pull request #6102 from Krysztal112233/main
...
lint: fix lints of new Rust version
2024-03-23 12:21:03 +01:00
Sylvestre Ledru
06e80c7af1
Merge pull request #6105 from cre4ture/fix/findings_for_env_string_args
...
Fix/findings for env string args
2024-03-23 10:17:14 +01:00
Krysztal112233
d21dc125d0
lint: fix clippy::suspicious_open_options
of project.
2024-03-23 16:49:35 +08:00
Ulrich Hornung
30d61d8a97
extract more functions for run_env()
2024-03-22 23:06:35 +01:00
Ulrich Hornung
59df0b8fb8
replace comment with extracted function
2024-03-22 22:36:57 +01:00
Ulrich Hornung
4c1e68c9f4
replace comment with extracted function
2024-03-22 22:34:05 +01:00
Ulrich Hornung
526cc8846c
extract functions blocks to reduce cognitive complexity
2024-03-22 22:17:48 +01:00
Daniel Hofstetter
5e6fa49ef5
more: fix incorrect tests
2024-03-22 15:13:53 +01:00
Krysztal112233
48e376e1e0
lint: allow clippy::suspicious_open_options
in sort.rs
2024-03-22 00:42:33 +08:00
Krysztal112233
63d92cdbda
lint: fix clippy::useless_vec
in unit_tests.rs
2024-03-21 23:46:24 +08:00
Krysztal112233
21d6eab847
lint: fix lint clippy::suspicious_open_options
2024-03-21 23:36:48 +08:00