Sun Nov 1 16:34:02 2020 UTC ()
Document the -not operator


(kim)
diff -r1.89 -r1.90 src/usr.bin/find/find.1

cvs diff -r1.89 -r1.90 src/usr.bin/find/find.1 (expand / switch to unified diff)

--- src/usr.bin/find/find.1 2017/07/03 21:34:57 1.89
+++ src/usr.bin/find/find.1 2020/11/01 16:34:02 1.90
@@ -1,14 +1,14 @@ @@ -1,14 +1,14 @@
1.\" $NetBSD: find.1,v 1.89 2017/07/03 21:34:57 wiz Exp $ 1.\" $NetBSD: find.1,v 1.90 2020/11/01 16:34:02 kim Exp $
2.\" 2.\"
3.\" Copyright (c) 1990, 1993 3.\" Copyright (c) 1990, 1993
4.\" The Regents of the University of California. All rights reserved. 4.\" The Regents of the University of California. All rights reserved.
5.\" 5.\"
6.\" This code is derived from software contributed to Berkeley by 6.\" This code is derived from software contributed to Berkeley by
7.\" the Institute of Electrical and Electronics Engineers, Inc. 7.\" the Institute of Electrical and Electronics Engineers, Inc.
8.\" 8.\"
9.\" Redistribution and use in source and binary forms, with or without 9.\" Redistribution and use in source and binary forms, with or without
10.\" modification, are permitted provided that the following conditions 10.\" modification, are permitted provided that the following conditions
11.\" are met: 11.\" are met:
12.\" 1. Redistributions of source code must retain the above copyright 12.\" 1. Redistributions of source code must retain the above copyright
13.\" notice, this list of conditions and the following disclaimer. 13.\" notice, this list of conditions and the following disclaimer.
14.\" 2. Redistributions in binary form must reproduce the above copyright 14.\" 2. Redistributions in binary form must reproduce the above copyright
@@ -729,26 +729,27 @@ device ID @@ -729,26 +729,27 @@ device ID
729.Va ( st_dev , 729.Va ( st_dev ,
730see 730see
731.Xr stat 2 731.Xr stat 2
732S5.6.2 [POSIX.1]). 732S5.6.2 [POSIX.1]).
733.El 733.El
734.Sh OPERATORS 734.Sh OPERATORS
735The primaries may be combined using the following operators. 735The primaries may be combined using the following operators.
736The operators are listed in order of decreasing precedence. 736The operators are listed in order of decreasing precedence.
737.Bl -tag -width (expression) 737.Bl -tag -width (expression)
738.It Cm \&( Ar expression Cm \&) 738.It Cm \&( Ar expression Cm \&)
739This evaluates to true if the parenthesized expression evaluates to 739This evaluates to true if the parenthesized expression evaluates to
740true. 740true.
741.It Cm \&! Ar expression 741.It Cm \&! Ar expression
 742.It Cm -not Ar expression
742This is the unary 743This is the unary
743.Tn NOT 744.Tn NOT
744operator. 745operator.
745It evaluates to true if the expression is false. 746It evaluates to true if the expression is false.
746.It Ar expression Cm -and Ar expression 747.It Ar expression Cm -and Ar expression
747.It Ar expression expression 748.It Ar expression expression
748The 749The
749.Cm -and 750.Cm -and
750operator is the logical 751operator is the logical
751.Tn AND 752.Tn AND
752operator. 753operator.
753As it is implied by the juxtaposition of two expressions it does not 754As it is implied by the juxtaposition of two expressions it does not
754have to be specified. 755have to be specified.
@@ -836,54 +837,56 @@ Perform an arbitrarily complex shell com @@ -836,54 +837,56 @@ Perform an arbitrarily complex shell com
836.Xr getgrent 3 , 837.Xr getgrent 3 ,
837.Xr getpwent 3 , 838.Xr getpwent 3 ,
838.Xr strmode 3 , 839.Xr strmode 3 ,
839.Xr re_format 7 , 840.Xr re_format 7 ,
840.Xr symlink 7 , 841.Xr symlink 7 ,
841.Xr sysctl 8 842.Xr sysctl 8
842.Sh STANDARDS 843.Sh STANDARDS
843The 844The
844.Nm 845.Nm
845utility syntax is a superset of the syntax specified by the 846utility syntax is a superset of the syntax specified by the
846.St -p1003.2 847.St -p1003.2
847standard. 848standard.
848.Pp 849.Pp
849The options and the 850The options, the
850.Ic -amin , 851.Ic -amin ,
851.Ic -anewer , 852.Ic -anewer ,
852.Ic -asince , 853.Ic -asince ,
853.Ic -cmin , 854.Ic -cmin ,
854.Ic -cnewer , 855.Ic -cnewer ,
855.Ic -csince , 856.Ic -csince ,
856.Ic -delete , 857.Ic -delete ,
857.Ic -empty , 858.Ic -empty ,
858.Ic -execdir , 859.Ic -execdir ,
859.Ic -follow , 860.Ic -follow ,
860.Ic -fstype , 861.Ic -fstype ,
861.Ic -iname , 862.Ic -iname ,
862.Ic -inum , 863.Ic -inum ,
863.Ic -iregex , 864.Ic -iregex ,
864.Ic -links , 865.Ic -links ,
865.Ic -ls , 866.Ic -ls ,
866.Ic -maxdepth , 867.Ic -maxdepth ,
867.Ic -mindepth , 868.Ic -mindepth ,
868.Ic -mmin , 869.Ic -mmin ,
869.Ic -path , 870.Ic -path ,
870.Ic -print0 , 871.Ic -print0 ,
871.Ic -printx , 872.Ic -printx ,
872.Ic -regex , 873.Ic -regex ,
873.Ic -rm , 874.Ic -rm ,
874and 875and
875.Ic -since 876.Ic -since
876primaries are extensions to 877primaries, and the
 878.Ic -not
 879operator are extensions to
877.St -p1003.2 . 880.St -p1003.2 .
878.Pp 881.Pp
879Historically, the 882Historically, the
880.Fl d , 883.Fl d ,
881.Fl h , 884.Fl h ,
882and 885and
883.Fl x 886.Fl x
884options were implemented using the primaries 887options were implemented using the primaries
885.Dq Ic -depth , 888.Dq Ic -depth ,
886.Dq Ic -follow , 889.Dq Ic -follow ,
887and 890and
888.Dq Ic -xdev . 891.Dq Ic -xdev .
889These primaries always evaluated to true, and always 892These primaries always evaluated to true, and always