-I and -J both set the same variable, replstr, to the string to replace with
a line of input, and both work differently, so prevent them from both being passed to xargs(1).
This commit is contained in:
parent
dcc5840ed5
commit
b23de8a352
@ -169,6 +169,8 @@ main(int argc, char **argv)
|
||||
argc -= optind;
|
||||
argv += optind;
|
||||
|
||||
if (Iflag && Jflag)
|
||||
errx(1, "the -I and -J options may not be used together");
|
||||
if (xflag && !nflag)
|
||||
usage();
|
||||
if (Iflag || Lflag)
|
||||
|
Loading…
Reference in New Issue
Block a user