Source-Changes archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

CVS commit: src/usr.bin/find



Module Name:    src
Committed By:   reed
Date:           Wed Nov  9 00:47:16 UTC 2005

Modified Files:
        src/usr.bin/find: extern.h find.1 find.h function.c option.c

Log Message:
Add -false switch. From man page:

-false  This primary always evaluates to false.  This can be used follow-
        ing a primary that caused the expression to be true to make the
        expression to be false.  This can be useful after using a -fprint
        primary so it can continue to the next expression (using an -or
        operator, for example).

This was brought up on the tech-userlevel list in October.

Using -fprint on findutils or new NetBSD find(1) does not do what
I wanted. For example, if saving results of all files that start
with a vowel or saving results of all files owned by group operator,
then the list of files owned by group operator would not include
the files starting with a vowel.

findutils's find has a workaround for this with -false and also a
"," comma opeator. (I made add this comma operator later; you can use
the comma to perform multiple independent tests.)


To generate a diff of this commit:
cvs rdiff -r1.21 -r1.22 src/usr.bin/find/extern.h src/usr.bin/find/option.c
cvs rdiff -r1.54 -r1.55 src/usr.bin/find/find.1
cvs rdiff -r1.19 -r1.20 src/usr.bin/find/find.h
cvs rdiff -r1.51 -r1.52 src/usr.bin/find/function.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.




Home | Main Index | Thread Index | Old Index