Skip to content

csplit doesn't support precision #5709

@sylvestre

Description

@sylvestre

With ours:

$ echo > in
$ csplit -b '%0#6.3x' in 1
csplit: incorrect conversion specification in suffix

With GNU:

$ echo > in
$ /usr/bin/csplit -b '%0#6.3x' in 1
0
1

The regexp here:
https://github.com/uutils/coreutils/blob/main/src/uu/csplit/src/split_name.rs#L52
and the following code needs to be updated

Tested in GNU with tests/csplit/csplit.sh

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    Status

    Done

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions