diff options
author | jmallett <jmallett@FreeBSD.org> | 2002-05-17 07:55:24 +0000 |
---|---|---|
committer | jmallett <jmallett@FreeBSD.org> | 2002-05-17 07:55:24 +0000 |
commit | 7c4cad23235825f053d78e22c44306fc17d3c66f (patch) | |
tree | a20e4ef4235c3490769e933cc0bf70a00af36f46 /usr.bin/xargs | |
parent | 877587ce74b85745ecd88233e7499ae1b3d5249a (diff) | |
download | FreeBSD-src-7c4cad23235825f053d78e22c44306fc17d3c66f.zip FreeBSD-src-7c4cad23235825f053d78e22c44306fc17d3c66f.tar.gz |
Simplify prerun() in the case where there are no arguments. Can't do -I or -J
substitution if `utility' is not specified and we're using the buildin echo;
It has no arguments for us to abuse.
Diffstat (limited to 'usr.bin/xargs')
-rw-r--r-- | usr.bin/xargs/xargs.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/usr.bin/xargs/xargs.c b/usr.bin/xargs/xargs.c index 32f8a75..e37a7e4 100644 --- a/usr.bin/xargs/xargs.c +++ b/usr.bin/xargs/xargs.c @@ -393,7 +393,7 @@ prerun(int argc, char **argv) repls = Rflag; - if (repls == 0) { + if (argc == 0 || repls == 0) { *xp = NULL; run(argv); return; |