Print error message when size == 0 in split(1)
instead of just exiting with code 1. This could be confusing.
This commit is contained in:
parent
fe84305649
commit
c514c580ec
4
split.c
4
split.c
|
@ -58,8 +58,10 @@ main(int argc, char *argv[])
|
||||||
break;
|
break;
|
||||||
case 'b':
|
case 'b':
|
||||||
always = 1;
|
always = 1;
|
||||||
if ((size = parseoffset(EARGF(usage()))) <= 0)
|
if ((size = parseoffset(EARGF(usage()))) < 0)
|
||||||
return 1;
|
return 1;
|
||||||
|
if (!size)
|
||||||
|
eprintf("size needs to be positive\n");
|
||||||
break;
|
break;
|
||||||
case 'd':
|
case 'd':
|
||||||
base = 10;
|
base = 10;
|
||||||
|
|
Loading…
Reference in New Issue
Block a user