| d9d69a6f | 28-Sep-2023 |
Dag-Erling Smørgrav <des@FreeBSD.org> |
split: Improve GNU compatibility.
* 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
split: Improve GNU compatibility.
* 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. Reviewed by: christos, kevans Differential Revision: https://reviews.freebsd.org/D42011
show more ...
|
| 117c54a7 | 06-Sep-2023 |
Dag-Erling Smørgrav <des@FreeBSD.org> |
split: Fix linecount parsing.
The “undocumented kludge” which unfortunately can't be dropped for backward compatibility reasons was prone to segfaulting and would improperly allow a new linecount wh
split: Fix linecount parsing.
The “undocumented kludge” which unfortunately can't be dropped for backward compatibility reasons was prone to segfaulting and would improperly allow a new linecount when one was already set. Fix these issues and add regression tests.
MFC after: 1 week Sponsored by: Klara, Inc. Reviewed by: kevans Differential Revision: https://reviews.freebsd.org/D41757
show more ...
|
| ac17fc81 | 30-May-2023 |
Jan Schaumann <jschauma@netmeister.org> |
split(1): add '-c' to continue creating files
Currently, split(1) will clobber any existing output files:
$ split file; ls xaa xab xac xad $ split second-file; ls xaa xab xac xad xae xaf
This patc
split(1): add '-c' to continue creating files
Currently, split(1) will clobber any existing output files:
$ split file; ls xaa xab xac xad $ split second-file; ls xaa xab xac xad xae xaf
This patch adds a flag "-c" (mnemonic "create, don't overwrite" or "continue where you left off"):
$ split file; ls xaa xab xac xad $ split -c second-file; ls xaa xab xac xad xae xaf xag xah xai xaj
Reviewed by: christos Approved by: kevans Different Revision: https://reviews.freebsd.org/D38553
show more ...
|
| 75c3ca1e | 23-Aug-2022 |
Kyle Evans <kevans@FreeBSD.org> |
split: add some tests
This should cover all of the basic functionality, as well as the recent enhancement to use a dynamic buffer size rather than limiting patterns and lines to MAXBSIZE.
Reviewed
split: add some tests
This should cover all of the basic functionality, as well as the recent enhancement to use a dynamic buffer size rather than limiting patterns and lines to MAXBSIZE.
Reviewed by: bapt Sponsored by: Klara, Inc. Differential Revision: https://reviews.freebsd.org/D36324
show more ...
|