Hi,

While experimenting with csplit I noticed the following behavior: if
the input is empty, an empty xx00 split file is created:

$ printf "" | csplit - 5
csplit: input disappeared
$ ls xx00
xx00

However, if the input is not empty, no such file is created:

$ printf "a" | csplit - 5
csplit: ‘5’: line number out of range
1
$ ls xx00
ls: cannot access 'xx00': No such file or directory

Is this a bug or a feature?

Thanks,
Daniel

Reply via email to