coreutils icon indicating copy to clipboard operation
coreutils copied to clipboard

csplit doesn't support precision

Open sylvestre opened this issue 1 year ago • 0 comments

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

sylvestre avatar Dec 24 '23 10:12 sylvestre