-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:
Juli Mallett 2002-05-06 03:38:28 +00:00
parent dcc5840ed5
commit b23de8a352

View File

@ -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)