Page MenuHomeFreeBSD

split: Improve GNU compatibility.
ClosedPublic

Authored by des on Sep 28 2023, 1:18 PM.
Tags
None
Referenced Files
F132111383: D42011.diff
Mon, Oct 13, 7:48 PM
F132068260: D42011.id127965.diff
Mon, Oct 13, 9:24 AM
Unknown Object (File)
Thu, Oct 9, 9:05 PM
Unknown Object (File)
Wed, Sep 24, 8:26 PM
Unknown Object (File)
Wed, Sep 17, 7:36 AM
Unknown Object (File)
Tue, Sep 16, 3:37 AM
Unknown Object (File)
Sep 13 2025, 8:42 PM
Unknown Object (File)
Sep 12 2025, 2:45 PM
Subscribers

Details

Summary
  • Like GNU split, turn autoextend back on if given -a0.
  • Add a test case that verifies that -a<non-zero> turns autoextend off.
  • Add a test case that verifies that -a0 turns autoextend back on.

Sponsored by: Klara, Inc.

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

christos added inline comments.
usr.bin/split/tests/split_test.sh
216

Shouldn't that be -a0?

This revision is now accepted and ready to land.Sep 28 2023, 1:29 PM
des marked an inline comment as done.Sep 28 2023, 1:38 PM
des added inline comments.
usr.bin/split/tests/split_test.sh
216

No, -a0 would turn autoextend _on_ which is the opposite of what we want here. Though I suppose I could add a test case for turning it off and then on again (-a2 -a0).

usr.bin/split/tests/split_test.sh
216

Yeap, it'd be good to have a test to test this functionality.

des marked 2 inline comments as done.Sep 28 2023, 3:53 PM
This revision now requires review to proceed.Sep 28 2023, 3:54 PM
This revision is now accepted and ready to land.Sep 28 2023, 4:01 PM
This revision was automatically updated to reflect the committed changes.