https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=213510

            Bug ID: 213510
           Summary: csplit does not work any more
           Product: Base System
           Version: 11.0-STABLE
          Hardware: Any
                OS: Any
            Status: New
          Severity: Affects Only Me
          Priority: ---
         Component: bin
          Assignee: freebsd-bugs@FreeBSD.org
          Reporter: la5lb...@aon.at

I am generating diffs of multiple files into a single output stream which
consists of multiple sections looking like this:

--- ./accessibility/jovie/Makefile.ORIG 2016-08-26 17:51:07.219458267 +0200
+++ ./accessibility/jovie/Makefile      2016-08-26 17:48:41.413457178 +0200
@@ -1,9 +1,16 @@
 # $FreeBSD: head/accessibility/jovie/Makefile 420774 2016-08-24 08:20:31Z
tcberner $
...
--- ./accessibility/kaccessible/Makefile.ORIG   2016-08-26 17:51:07.268463953
+0200
+++ ./accessibility/kaccessible/Makefile        2016-08-26 17:48:41.505435723
+0200
@@ -1,9 +1,16 @@
 # $FreeBSD: head/accessibility/kaccessible/Makefile 420774 2016-08-24
08:20:31Z tcberner $
...

I now want to split this stream using csplit:

csplit -k -n 3 - '/^[-*][-*][-*] .*\.ORIG/' '{1000}'

This produces files xx000 to xx998 of size 0, and file xx999 with the following
contents (one line only):

--- ./accessibility/jovie/Makefile.ORIG 2016-08-26 17:51:07.219458267 +0200

This worked correctly in 10.3.

-- 
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"

Reply via email to