summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorjmallett <jmallett@FreeBSD.org>2002-08-19 02:27:33 +0000
committerjmallett <jmallett@FreeBSD.org>2002-08-19 02:27:33 +0000
commitbd88fce4f373f821b7282c996b07026c9dea8a44 (patch)
tree7c81455c7ab53b1bffe107d981285d56731b7583
parent5c4faa8fa4ed70bc9ead0da8d2732efb7f036e2c (diff)
downloadFreeBSD-src-bd88fce4f373f821b7282c996b07026c9dea8a44.zip
FreeBSD-src-bd88fce4f373f821b7282c996b07026c9dea8a44.tar.gz
Add a unary -not operator ala -false and !, for sake of completeness.
Obtained from: OpenDarwin MFC after: 1 week
-rw-r--r--usr.bin/find/find.11
-rw-r--r--usr.bin/find/option.c1
2 files changed, 2 insertions, 0 deletions
diff --git a/usr.bin/find/find.1 b/usr.bin/find/find.1
index 15eb203..ee8f0de 100644
--- a/usr.bin/find/find.1
+++ b/usr.bin/find/find.1
@@ -695,6 +695,7 @@ true.
.Pp
.It Cm \&! Ar expression
.It Cm -false Ar expression
+.It Cm -not Ar expression
This is the unary
.Tn NOT
operator.
diff --git a/usr.bin/find/option.c b/usr.bin/find/option.c
index f0af4c6..657d975 100644
--- a/usr.bin/find/option.c
+++ b/usr.bin/find/option.c
@@ -112,6 +112,7 @@ static OPTION const options[] = {
{ "-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 },
{ "-o", c_simple, f_or, 0 },
{ "-ok", c_exec, f_exec, F_NEEDOK },
{ "-okdir", c_exec, f_exec, F_NEEDOK | F_EXECDIR },
OpenPOWER on IntegriCloud