Date: Tue, 18 Feb 2003 23:16:45 +0900 (JST) From: Matsumura Naoki <matsu@jp.FreeBSD.org> To: FreeBSD-gnats-submit@FreeBSD.org Subject: bin/48423: /usr/bin/find's '-not' option doesn't work Message-ID: <200302181416.h1IEGjq68887@castle.jp.FreeBSD.org>
next in thread | raw e-mail | index | archive | help
>Number: 48423
>Category: bin
>Synopsis: /usr/bin/find's '-not' option doesn't work
>Confidential: no
>Severity: non-critical
>Priority: low
>Responsible: freebsd-bugs
>State: open
>Quarter:
>Keywords:
>Date-Required:
>Class: sw-bug
>Submitter-Id: current-users
>Arrival-Date: Tue Feb 18 06:20:03 PST 2003
>Closed-Date:
>Last-Modified:
>Originator: Matsumura Naoki
>Release: FreeBSD 4.7-RELEASE-p3 i386
>Organization:
Japan FreeBSD Users Group
>Environment:
System: FreeBSD castle.jp.FreeBSD.org 4.7-RELEASE-p3 FreeBSD 4.7-RELEASE-p3 #0: Tue Jan 7 10:29:07 JST 2003 root@castle.jp.FreeBSD.org:/usr/src/sys/compile/CASTLE i386
>Description:
/usr/bin/find's '-not' option doesn't work.
>How-To-Repeat:
% find . -not -print
find: -not: unknown option
>Fix:
Array options[] is not correct order.
Invert '-nouser' and '-not'.
--- option.c.org Tue Feb 18 22:52:38 2003
+++ option.c Tue Feb 18 23:09:58 2003
@@ -109,8 +109,8 @@
{ "-newermm", c_newer, f_newer, 0 },
{ "-newermt", c_newer, f_newer, F_TIME2_T },
{ "-nogroup", c_nogroup, f_nogroup, 0 },
- { "-nouser", c_nouser, f_nouser, 0 },
{ "-not", c_simple, f_not, 0 },
+ { "-nouser", c_nouser, f_nouser, 0 },
{ "-o", c_simple, f_or, 0 },
{ "-ok", c_exec, f_exec, F_NEEDOK },
{ "-okdir", c_exec, f_exec, F_NEEDOK | F_EXECDIR },
>Release-Note:
>Audit-Trail:
>Unformatted:
To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-bugs" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200302181416.h1IEGjq68887>
