Skip to content

Conversation

@GTimothy
Copy link
Contributor

@GTimothy GTimothy commented Jun 19, 2025

Changes:

  • a one line change adds the --first-only alias -f expected by busybox
  • documentation of this alias which is an extension to the GNU reference.

It reduces test failures for make UTILS=unexpand busytest from 7 to 2.

@sylvestre
Copy link
Contributor

could you please add a test to make sure we don't regress ?

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

@GTimothy
Copy link
Contributor Author

GTimothy commented Jun 19, 2025

Ok, will document the diff.
As for the test, how would I test this more than the already busytest test ?

@GTimothy GTimothy force-pushed the busybox-first-only-alias branch from ad42181 to ce0c2af Compare June 19, 2025 13:21
@GTimothy
Copy link
Contributor Author

the gnu test misc/unexpand.pl still passes with this change.

@sylvestre
Copy link
Contributor

yes, we want tests in the rust testsuite as they are easy to run and run quickly

GTimothy and others added 2 commits June 19, 2025 19:53
add the `--first-only` alias `-f` expected by busybox.
document the change.

Co-authored-by: Sylvestre Ledru <[email protected]>
add two tests for the `-f` alias
@GTimothy GTimothy force-pushed the busybox-first-only-alias branch from 6fe2011 to 2fa89ca Compare June 19, 2025 17:55
@GTimothy
Copy link
Contributor Author

GTimothy commented Jun 19, 2025

@sylvestre Currently it is split in two commits. Should I merge them into one (if the tests are ok) ?

@sylvestre
Copy link
Contributor

don't bother :)

@github-actions
Copy link

GNU testsuite comparison:

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

@sylvestre sylvestre merged commit d05460a into uutils:main Jun 19, 2025
74 of 75 checks passed
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