Skip to content

csplit: new line added automatically leads to inconsistency with GNU #7126

@Felle33

Description

@Felle33

I found this incosistency with GNU when the following command is executed: printf "a\nb\nc\nd" | csplit - 2

With GNU implementation, the csplit produces 2 files and in standard output we have:
2
5

On the other hand if I execute the same command with uutils, it produces 2 files and in standard output we have:
2
6

The difference is in the second file because uutils implementation adds automatically a \n the d letter.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions