split: Further option parsing improvements.* Whenever possible, use strtonum() to parse numeric arguments.* Improve usefulness and consistency of error messages.* While here, fix some type and st
split: Further option parsing improvements.* Whenever possible, use strtonum() to parse numeric arguments.* Improve usefulness and consistency of error messages.* While here, fix some type and style issues.Sponsored by: Klara, Inc.Reviewed by: christos, kevansDifferential Revision: https://reviews.freebsd.org/D42010(cherry picked from commit d7399551b02861b910b15c7b7a78a2835644aa45)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, kevansDifferential Revision: https://reviews.freebsd.org/D42011(cherry picked from commit d9d69a6f6fc1f8d80df9ce6493e8ab9388781615)
show more ...
split: Add missing test cases.This adds test cases for c4f7198f47c1 and ac17fc816e67.MFC after: 1 weekSponsored by: Klara, Inc.Reviewed by: kevansDifferential Revision: https://reviews.freebsd
split: Add missing test cases.This adds test cases for c4f7198f47c1 and ac17fc816e67.MFC after: 1 weekSponsored by: Klara, Inc.Reviewed by: kevansDifferential Revision: https://reviews.freebsd.org/D41755(cherry picked from commit cbea5eddb1b6ae2a101beacf00bf165517f4f2b1)split: Code cleanup.MFC after: 1 weekSponsored by: Klara, Inc.Reviewed by: kevansDifferential Revision: https://reviews.freebsd.org/D41756(cherry picked from commit 851bf856d1a7ad5427ea9c22639ab6f6c4a3f503)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 weekSponsored by: Klara, Inc.Reviewed by: kevansDifferential Revision: https://reviews.freebsd.org/D41757(cherry picked from commit 117c54a78ccd214c236806721f21da750e512d3e)Approved by: re (gjb)
Remove $FreeBSD$: one-line sh patternRemove /^\s*#[#!]?\s*\$FreeBSD\$.*$\n/
spdx: The BSD-2-Clause-FreeBSD identifier is obsolete, drop -FreeBSDThe SPDX folks have obsoleted the BSD-2-Clause-FreeBSD identifier. Catchup to that fact and revert to their recommended match of
spdx: The BSD-2-Clause-FreeBSD identifier is obsolete, drop -FreeBSDThe SPDX folks have obsoleted the BSD-2-Clause-FreeBSD identifier. Catchup to that fact and revert to their recommended match of BSD-2-Clause.Discussed with: pfgMFC After: 3 daysSponsored by: Netflix
split: add some testsThis should cover all of the basic functionality, as well as the recentenhancement to use a dynamic buffer size rather than limiting patternsand lines to MAXBSIZE.Reviewed
split: add some testsThis should cover all of the basic functionality, as well as the recentenhancement to use a dynamic buffer size rather than limiting patternsand lines to MAXBSIZE.Reviewed by: baptSponsored by: Klara, Inc.Differential Revision: https://reviews.freebsd.org/D36324