Add a unary -not operator ala -false and !, for sake of completeness.

Obtained from:	OpenDarwin
MFC after:	1 week
This commit is contained in:
Juli Mallett 2002-08-19 02:27:33 +00:00
parent 49b2349b41
commit 4a0193d39e
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=102083
2 changed files with 2 additions and 0 deletions

View File

@ -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.

View File

@ -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 },