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
Sylvestre Ledru
934e85f4cd
cp: make --backup and --no-clobber are mutually exclusive ( #7082 )
...
* cp: make --backup and --no-clobber are mutually exclusive
Should fix tests/cp/cp-i.sh
* simplify the test
Co-authored-by: Daniel Hofstetter <daniel.hofstetter@42dh.com>
---------
Co-authored-by: Daniel Hofstetter <daniel.hofstetter@42dh.com>
2025-01-06 09:40:41 +01:00
Sylvestre Ledru
7a78213edb
Merge pull request #7060 from DaringCuteSeal/bufcopy-cleanup
...
uucore/buf-copy: delete redundant functions
2025-01-06 09:08:32 +01:00
Sylvestre Ledru
0459369e92
Merge pull request #7068 from DaringCuteSeal/head-dev-full
...
head: make head fail when writing to /dev/full
2025-01-06 09:07:28 +01:00
Daringcuteseal
509b755b3b
head: make process fail when writing to /dev/full
2025-01-06 04:58:56 +07:00
Mark
49ae68d443
cp: copy attributes after making subdir ( #6884 )
2025-01-05 22:12:12 +01:00
Sylvestre Ledru
4e77b010ec
Merge pull request #7081 from uutils/renovate/xattr-1.x-lockfile
...
chore(deps): update rust crate xattr to v1.4.0
2025-01-05 21:44:01 +01:00
renovate[bot]
de66422d40
chore(deps): update rust crate xattr to v1.4.0
2025-01-05 18:52:49 +00:00
Sylvestre Ledru
8d55e4edd1
Merge pull request #7080 from cakebaker/cksum_remove_unnecessary_type_info
...
cksum: remove some unnecessary type info
2025-01-05 17:58:20 +01:00
Daniel Hofstetter
e3acd5ab07
Merge pull request #7078 from jfinkels/tsort-split-whitespace
...
tsort: split edge data on any whitespace chars
2025-01-05 15:27:43 +01:00
Daniel Hofstetter
5dfeb809a4
cksum: remove some unnecessary type info
2025-01-05 14:50:14 +01:00
Daniel Hofstetter
d9936ca583
Merge pull request #7079 from Felle33/cksum_--tag_meaningless_with_--check
...
cksum: the --tag is meaningless with --check
2025-01-05 14:43:38 +01:00
Daniel Hofstetter
4ff48c3d85
Merge pull request #7009 from sylvestre/xattrs
...
cp: when copying a read only file, make sure that the xattrs can be set properly
2025-01-05 13:51:00 +01:00
tommi
61290fd6e8
tests/cksum: test added to check that the --check and --tag flags are meaningless
2025-01-05 10:32:08 +01:00
tommi
dd17f9a61c
cksum: check ourself the flags --check and --tag and output the correct error
2025-01-05 10:28:08 +01:00
Jeffrey Finkelstein
f703e88e9f
tsort: split edge data on any whitespace chars
...
Make `tsort` split on any whitespace character instead of just
whitespace within a single line. This allows edge information to be
split with the source node on one line and the target node on another.
For example, after this commit
$ printf "a\nb\n" | tsort
a
b
whereas before this would print an error message.
Closes #7077
2025-01-04 22:52:01 -05:00
Jeffrey Finkelstein
5cf5acb4a2
tsort: use std::io::read_to_string to load data
2025-01-04 22:51:57 -05:00
Jeffrey Finkelstein
c9ae4819f5
tsort: use TsortError for errors in tsort
2025-01-04 22:51:52 -05:00
Daringcuteseal
9202f23787
tests/head: add test to write to /dev/full
2025-01-05 09:14:05 +07:00
Daringcuteseal
5fe6706c51
head: refactor to use specific error enums
2025-01-05 09:14:02 +07:00
Sylvestre Ledru
1e8e16b79c
Merge pull request #7075 from jfinkels/mkfifo-mode-dependency
...
mkfifo: add missing "mode" feature for uucore dep
2025-01-05 00:07:14 +01:00
Jeffrey Finkelstein
4f43e7f2dd
mkfifo: add missing "mode" feature for uucore dep
2025-01-04 17:58:29 -05:00
Sylvestre Ledru
20b5365d06
Merge pull request #7062 from cakebaker/bump_tempfile
...
Bump `tempfile` from `3.14.0` to `3.15.0`
2025-01-04 21:53:24 +01:00
Tommaso Fellegara
b15bc8440c
cksum: fix error message when the flags length and an algorithm different from blake2b are present ( #7071 )
...
test length and blake2b algorithm before testing supported algorithms
2025-01-04 21:53:10 +01:00
Sylvestre Ledru
5a3afb28ca
CI: also install attr in one of the CI job to test a cp feature
2025-01-04 20:36:45 +01:00
Sylvestre Ledru
da2a4fedf5
cp: when copying a read only file, make sure that the xattrs can be set properly
...
on the destination
Should fix tests/misc/xattr.sh
2025-01-04 20:36:43 +01:00
Daniel Hofstetter
fbea7c41ca
Merge pull request #7070 from samueltardieu/push-ozkqollptyzw
...
kill: make `-s` conflict with `-l` and `-t`
2025-01-04 15:32:44 +01:00