https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=213510
Ross McKelvie <r...@exitzero.uk> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |r...@exitzero.uk --- Comment #2 from Ross McKelvie <r...@exitzero.uk> --- I have experienced the same issue and an additional issue with csplit on 11.0-RELEASE-p3. To replicate create a file called 'bigfile' with the contents: BEGINS Section One Text for section one. Section Two Text for section two. Section Three Text for section three. ENDS Run csplit: csplit bigfile '/Section/' '{1}' Expected result: 3 files: xx00, xx01 and xx02 each containing text for each section with a trailing newline; for example xx00: BEGINS Section One Text for section one. ENDS Actual result: 2 files: xx00 and xx01. xx00 is empty and xx01 contains the single line "Section One". Splitting by line number is also broken. Run csplit: csplit bigfile 4 7 Expected result: 3 files: xx00, xx01 and xx02 each containing text for each section with a trailing newline. Actual result: 3 files: xx00 containing the single line "Section One", xx01 containing the single line "Text here from section one" and xx02 containing a newline character. A potential workaround is instead using the split utility, for example: split -p 'Section' bigfile However, split does not offer the complexity of csplit and is not suitable as a direct substitute. -- You are receiving this mail because: You are the assignee for the bug. _______________________________________________ freebsd-bugs@freebsd.org mailing list https://lists.freebsd.org/mailman/listinfo/freebsd-bugs To unsubscribe, send any mail to "freebsd-bugs-unsubscr...@freebsd.org"