diff options
author | jilles <jilles@FreeBSD.org> | 2011-05-27 22:14:49 +0000 |
---|---|---|
committer | jilles <jilles@FreeBSD.org> | 2011-05-27 22:14:49 +0000 |
commit | b7dd2d4f96557a3a21d6a6c28e09f4242deab5ba (patch) | |
tree | 0c180cc93283c9fd1937ec09b20b42b02ebeb0ca /usr.bin/find | |
parent | 7d4b16f6f8f2a016827f64398c5a7f59247e56b3 (diff) | |
download | FreeBSD-src-b7dd2d4f96557a3a21d6a6c28e09f4242deab5ba.zip FreeBSD-src-b7dd2d4f96557a3a21d6a6c28e09f4242deab5ba.tar.gz |
find: If a part of an expression is unknown, do not call it an option.
Although most of the primaries and operators start with "-", they are not
options.
Examples:
find . -xyz
find . -name xyz -or bad
MFC after: 1 week
Diffstat (limited to 'usr.bin/find')
-rw-r--r-- | usr.bin/find/option.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/usr.bin/find/option.c b/usr.bin/find/option.c index b2374e6..f8745b2 100644 --- a/usr.bin/find/option.c +++ b/usr.bin/find/option.c @@ -172,7 +172,7 @@ find_create(char ***argvp) argv = *argvp; if ((p = lookup_option(*argv)) == NULL) - errx(1, "%s: unknown option", *argv); + errx(1, "%s: unknown primary or operator", *argv); ++argv; new = (p->create)(p, &argv); |