svn commit: r222697 - head/usr.bin/find
Jilles Tjoelker
jilles at FreeBSD.org
Sat Jun 4 21:59:56 UTC 2011
Author: jilles
Date: Sat Jun 4 21:59:55 2011
New Revision: 222697
URL: http://svn.freebsd.org/changeset/base/222697
Log:
find: Exit if there is an unknown option.
Ignoring the parameter with the unknown options is unlikely to be what was
intended.
Example:
find -n .
Note that things like
find -n
already caused an exit, equivalent to "find" by itself.
Modified:
head/usr.bin/find/main.c
Modified: head/usr.bin/find/main.c
==============================================================================
--- head/usr.bin/find/main.c Sat Jun 4 20:40:24 2011 (r222696)
+++ head/usr.bin/find/main.c Sat Jun 4 21:59:55 2011 (r222697)
@@ -120,7 +120,7 @@ main(int argc, char *argv[])
break;
case '?':
default:
- break;
+ usage();
}
argc -= optind;
More information about the svn-src-head
mailing list