diff options
author | jmallett <jmallett@FreeBSD.org> | 2002-05-06 03:38:28 +0000 |
---|---|---|
committer | jmallett <jmallett@FreeBSD.org> | 2002-05-06 03:38:28 +0000 |
commit | 864cb02be27117c8975516a1c4ac29e99604c0ba (patch) | |
tree | 24173f4cab99adeec6996480405dcf88c4db31ec /usr.bin/xargs | |
parent | 33ff01f29dbffa2df4440a63a9ca69bb38450691 (diff) | |
download | FreeBSD-src-864cb02be27117c8975516a1c4ac29e99604c0ba.zip FreeBSD-src-864cb02be27117c8975516a1c4ac29e99604c0ba.tar.gz |
-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).
Diffstat (limited to 'usr.bin/xargs')
-rw-r--r-- | usr.bin/xargs/xargs.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/usr.bin/xargs/xargs.c b/usr.bin/xargs/xargs.c index 8c4d11a..d13b23a 100644 --- a/usr.bin/xargs/xargs.c +++ b/usr.bin/xargs/xargs.c @@ -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) |