Daniel Hofstetter
6096767442
csplit: simplify test
2025-01-09 15:20:22 +01:00
Daniel Hofstetter
50571c7346
Merge pull request #6951 from fuad1502/csplit-pipe-input
...
csplit: support reading from pipe
2025-01-09 15:02:10 +01:00
Fuad Ismail
a4fdecbf48
tests/csplit: use printf instead of echo -n for maximum portability with all UNIX systems
2025-01-09 10:52:19 +01:00
Fuad Ismail
981019138d
tests/csplit: ignore IRWXU from cspell check
2025-01-09 10:52:19 +01:00
Fuad Ismail
694298f0d1
csplit: modify failure in opening file error message
2025-01-09 10:52:19 +01:00
Fuad Ismail
96929734ea
tests/csplit: modify no_such_file test expected error to conform better with original csplit error
2025-01-09 10:52:19 +01:00
Fuad Ismail
c8bc5d2455
tests/csplit: handle directory input file test for Windows separately
2025-01-09 10:52:19 +01:00
Fuad Ismail
51dce9c5f8
csplit: return UResult instead of io::Result from iterator to handle error message more uniformly.
2025-01-09 10:52:19 +01:00
Fuad Ismail
19f990f29a
tests/csplit: add directory input file test.
2025-01-09 10:52:19 +01:00
Fuad Ismail
757c0b260e
csplit: defer IO read error handling to iterator.
2025-01-09 10:52:19 +01:00
Fuad Ismail
1dc463fd26
tests/csplit: add named pipe input file test.
2025-01-09 10:52:19 +01:00
Tommaso Fellegara
33ac58383c
csplit: fix bug when --suppress-matched flag is active and positive/negative offset is present ( #7088 )
...
* tests/csplit: modified test test_up_to_match_offset_option_suppress_matched according to issue #7052 and modified also test_up_to_match_negative_offset_option_suppress_matched
* csplit: managed the positive and negative offset when the --suppressed-matched flag is active
* tests/csplit: modified test test_up_to_match_offset_option_suppress_matched according to issue #7052 and modified also test_up_to_match_negative_offset_option_suppress_matched
* csplit: managed the positive and negative offset when the --suppressed-matched flag is active
* csplit: swapped if and else blocks for better readability
2025-01-09 09:20:48 +01:00
Daniel Hofstetter
efd0ad9ead
Merge pull request #7105 from uutils/renovate/vmactions-freebsd-vm-1.x
...
chore(deps): update vmactions/freebsd-vm action to v1.1.8
2025-01-09 07:05:17 +01:00
Daniel Hofstetter
ab0933fb6e
Merge pull request #7104 from uutils/renovate/thiserror-2.x-lockfile
...
chore(deps): update rust crate thiserror to v2.0.10
2025-01-09 06:59:33 +01:00
renovate[bot]
9280a46cc8
chore(deps): update vmactions/freebsd-vm action to v1.1.8
2025-01-08 21:53:11 +00:00
renovate[bot]
97821a763a
chore(deps): update rust crate thiserror to v2.0.10
2025-01-08 21:53:06 +00:00
Daniel Hofstetter
c531fb3973
Merge pull request #7090 from sylvestre/env
...
env/stbuf: better handling of the errors
2025-01-08 10:36:06 +01:00
Daniel Hofstetter
62e6dadd41
Merge pull request #7102 from uutils/renovate/clap_mangen-0.x-lockfile
...
chore(deps): update rust crate clap_mangen to v0.2.25
2025-01-08 09:00:49 +01:00
Sylvestre Ledru
62db489f51
Merge pull request #7101 from cakebaker/doc_remove_fixed_errors
...
doc: remove fixed tests from `why-error.md`
2025-01-08 08:40:49 +01:00
renovate[bot]
1560325836
chore(deps): update rust crate clap_mangen to v0.2.25
2025-01-08 07:32:17 +00:00
Sylvestre Ledru
2d3effab76
Merge pull request #7095 from jfinkels/seq-precision-test
...
seq: re-enable GNU test file precision.sh
2025-01-08 08:31:24 +01:00
Daniel Hofstetter
7790cec9ec
Merge pull request #7100 from uutils/renovate/clap_complete-4.x-lockfile
...
chore(deps): update rust crate clap_complete to v4.5.41
2025-01-08 07:32:12 +01:00
Daniel Hofstetter
bde9bdd8df
Merge pull request #7099 from uutils/renovate/clap-4.x-lockfile
...
chore(deps): update rust crate clap to v4.5.24
2025-01-08 07:31:46 +01:00
Daniel Hofstetter
763589c99c
doc: remove fixed tests from why-error.md
2025-01-08 07:28:44 +01:00
Daniel Hofstetter
72bdee0111
Merge pull request #7084 from saulvaldelvira/main
...
Remove crash! macro
2025-01-08 07:10:19 +01:00
renovate[bot]
b918f6856c
chore(deps): update rust crate clap_complete to v4.5.41
2025-01-08 06:04:49 +00:00
renovate[bot]
83ae0c0f74
chore(deps): update rust crate clap to v4.5.24
2025-01-08 06:04:43 +00:00
Daniel Hofstetter
beb76856ed
Merge pull request #7091 from sylvestre/doc22
...
doc: improve why-error doc
2025-01-08 07:03:46 +01:00
Jeffrey Finkelstein
af99952de6
tsort: print nodes and cycles as they are visited
...
Update `tsort` so that
* nodes are printed as they are visited,
* cycles are printed as they are discovered,
* finding a cycle doesn't terminate the traversal,
* multiple cycles can be found and displayed.
Fixes #7074
2025-01-07 21:35:56 -05:00
Jeffrey Finkelstein
0eb6f9bddb
seq: re-enable GNU test file precision.sh
2025-01-07 21:34:56 -05:00
Jeffrey Finkelstein
1bb33e0446
tsort: derive Default trait for Node struct
...
Replace custom `Node::new` function with derived `Default`
implementation, which does the same thing but more concisely.
2025-01-07 19:41:16 -05:00
Sylvestre Ledru
6cb552828c
doc: add some details on the failures
2025-01-08 00:39:38 +01:00
Sylvestre Ledru
1d2119d6a7
doc: improve the rendering
2025-01-08 00:35:07 +01:00
Sylvestre Ledru
19d3f57464
doc: rename to md
2025-01-08 00:33:08 +01:00
Sylvestre Ledru
20e043c5fc
stdbuf: Improve the code
2025-01-08 00:16:37 +01:00
Sylvestre Ledru
04d4c9e1ef
stdbuf: better handling when non existing files
...
Should fix tests/misc/stdbuf
2025-01-08 00:13:31 +01:00
Sylvestre Ledru
79645d45ce
stdbuf: better handling of the error message when no perm
...
Tested in tests/misc/stdbuf
2025-01-08 00:13:31 +01:00
Sylvestre Ledru
58f6afdeb4
env: handle the error properly
...
instead of:
env: unknown error: Os { code: 13, kind: PermissionDenied, message: "Permission denied" }
2025-01-08 00:13:31 +01:00
Saúl Valdelvira
6f35be40e8
uucore: Remove crash! macro
2025-01-07 17:37:10 +01:00
Sylvestre Ledru
f94fd11bef
Merge pull request #7086 from cakebaker/build_gnu_adapt_numfmt_error_message
...
build-gnu.sh: adapt GNU `numfmt` error message
2025-01-07 11:21:01 +01:00
Daniel Hofstetter
190cc66406
build-gnu.sh: adapt GNU numfmt error message
2025-01-07 10:38:32 +01:00
Daniel Hofstetter
e81c6d18ba
Merge pull request #7083 from uutils/renovate/phf_codegen-0.x-lockfile
...
chore(deps): update rust crate phf_codegen to v0.11.3
2025-01-07 07:13:23 +01:00
Daniel Hofstetter
0236ca964c
Merge pull request #7085 from uutils/renovate/phf-0.x-lockfile
...
chore(deps): update rust crate phf to v0.11.3
2025-01-07 07:07:33 +01:00
renovate[bot]
74e9bbcc92
chore(deps): update rust crate phf to v0.11.3
2025-01-07 01:44:09 +00:00
renovate[bot]
3e1349e75d
chore(deps): update rust crate phf_codegen to v0.11.3
2025-01-06 20:54:29 +00:00
Daringcuteseal
c6d1923701
tests/cp: add test to copy from stdin
2025-01-06 20:21:13 +07:00
Daringcuteseal
b75d0f9446
tests/cp: remove FreeBSD guard in FIFO copy test
...
Copying FIFOs now work under FreeBSD and other UNIX platforms.
2025-01-06 19:40:12 +07:00
Daringcuteseal
77fadc6897
cp: implement copying content from streams
...
Previously, the only stream that cp supports copying are FIFOs. Any other files will be handled using
std::io::copy which does not handle special files like block devices or character specials. This
commit fixes the previously missing support by using std::io::copy or splice syscall for Linux to
handle those cases.
2025-01-06 19:40:12 +07:00
Sylvestre Ledru
c201f38212
Merge pull request #7059 from cakebaker/echo_posixly_correct
...
echo: add support for `POSIXLY_CORRECT`
2025-01-06 10:23:08 +01:00
Daniel Hofstetter
d8d635d014
echo: add support for POSIXLY_CORRECT
2025-01-06 09:51:41 +01:00