Skip to content

Conversation

@cakebaker
Copy link
Contributor

uname from coreutils prints the OS information last, for example:

$ uname -pio
unknown unknown GNU/Linux

whereas our uname doesn't:

$ cargo run -q --features=unix uname -pio
GNU/Linux unknown unknown

This PR fixes the issue. It also gets rid of the trailing space in the return of the display function and thus makes the trim_end() call unnecessary.

@cakebaker cakebaker force-pushed the uname_fix_order_of_output branch from e625fec to af5ef64 Compare June 7, 2025 16:03
@github-actions
Copy link

github-actions bot commented Jun 7, 2025

GNU testsuite comparison:

Skip an intermittent issue tests/misc/tee (fails in this run but passes in the 'main' branch)

@sylvestre sylvestre force-pushed the uname_fix_order_of_output branch from af5ef64 to 05bcb65 Compare June 8, 2025 11:56
@github-actions
Copy link

github-actions bot commented Jun 8, 2025

GNU testsuite comparison:

Skip an intermittent issue tests/misc/tee (fails in this run but passes in the 'main' branch)
Skip an intermittent issue tests/timeout/timeout (fails in this run but passes in the 'main' branch)

@sylvestre sylvestre merged commit 938fd78 into uutils:main Jun 8, 2025
31 checks passed
@cakebaker cakebaker deleted the uname_fix_order_of_output branch June 8, 2025 13:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants