Skip to content

uptime: Add -p, --pretty argument #7910

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

irbeam256
Copy link

Closes #7903

Extends uptime with a pretty printing flag similar to the procps-ng version.

@irbeam256 irbeam256 force-pushed the 7903_pretty_print branch 2 times, most recently from 131ddc4 to 42a5e5d Compare May 11, 2025 02:02
@sylvestre
Copy link
Contributor

Copy link

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)

Copy link

GNU testsuite comparison:

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

Copy link

GNU testsuite comparison:

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

@sylvestre
Copy link
Contributor

please document this in:
https://github.com/uutils/coreutils/blob/main/docs/src/extensions.md

ping ? :)

Copy link

GNU testsuite comparison:

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

@irbeam256
Copy link
Author

My bad, documented now.

Copy link

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)

Copy link

GNU testsuite comparison:

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

Copy link

GNU testsuite comparison:

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

@irbeam256 irbeam256 force-pushed the 7903_pretty_print branch from ceac40e to 0f122bd Compare May 22, 2025 04:05
@cakebaker
Copy link
Contributor

Somehow your commit contains many things unrelated to uptime :|

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.

uptime: Add -p, --pretty show uptime in pretty format option
3 participants