Go to file
reed 4129c05469 This adds -fprint function. The primary name "-fprint" (but not the
code) comes from findutils; it behaves the same.

From my manpage addition:

 -fprint filename
	This primary always evaluates to true.  This creates filename or
	overwrites the file if it already exists.  The file is created at
	startup.  It writes the pathname of the current file to this
	file, followed by a newline character.  The file will be empty if
	no files are matched.

Here is an example usage:

find /etc \( -name "*pass*" -fprint file1 \) -o \( -group operator -fprint file2 \) -o -name "w*"

Note that this example will NOT include entry in file2 if it is
matched in first expression. (This also is same behaviour as
findutils, and I have implemented a -false primary to handle that.
I will commit it later.)

This creates the file as command line argument parsing time.
If there is an error somewhere on that line, such as missing values
or mismatched parenthesis, then a file may still be created.
(Even if a later -fprint filename is unwritable.) This is similar
behaviour to findutils. (It has been suggested that this find could
be code to create the files in an extra stage after the command-line
argument parsing and before the actual function processing.)

I will add -fprintx and -fprint0 soon.

This was discussed on tech-userlevel.
2005-10-12 20:03:59 +00:00
bin PR/31548: Alexander Rigbo: $PWD not set when shell starts up, before pwd 2005-10-10 21:14:42 +00:00
crypto Add a preprocessor symbol so we can distinguish fixed openssl 2005-10-11 21:17:17 +00:00
dist Support NetBSD. 2005-10-01 10:23:28 +00:00
distrib Fix path for mtree 2005-10-12 02:11:58 +00:00
doc gcc-4.0.2 out. 2005-10-12 14:27:16 +00:00
etc Revert previous commit; I'll find a better solution. 2005-10-11 21:36:11 +00:00
games Fix two lines which were broken by previous commit. Noticed by Thomas 2005-10-12 15:33:41 +00:00
gnu Install /usr/share/doc/html/postfix/postfix-logo.jpg too since 2005-10-10 15:34:30 +00:00
include Change the sched_*() functions to return -1 and set errno to ENOSYS 2005-10-09 11:17:28 +00:00
lib Add el_get to SYNOPSIS. From jmc@openbsd. 2005-10-12 09:29:43 +00:00
libexec logxfer(): don't use the same buffer to store the results of two separate 2005-10-03 00:02:25 +00:00
regress Add a test to make sure loops are handled properly. 2005-10-04 22:56:20 +00:00
rescue put back tetris; by popular demand. 2005-09-23 00:29:51 +00:00
sbin avoid the need for a bogus initializer. 2005-10-08 03:21:17 +00:00
share New sentence, new line. 2005-10-10 20:57:43 +00:00
sys Make receiver lock-up workaround conditional on setting link1, as we have 2005-10-12 19:26:10 +00:00
tools Fix previous commit. Broken logic 2005-10-04 04:56:19 +00:00
usr.bin This adds -fprint function. The primary name "-fprint" (but not the 2005-10-12 20:03:59 +00:00
usr.sbin Remove superfluous quotes. Sort option descriptions. 2005-10-12 09:19:34 +00:00
x11 Enable XInput in all Xsun flavours. Fixes fallout from enabling XFree86. 2005-10-03 20:22:08 +00:00
BUILDING Document the environment variables for if you need to override or 2005-02-15 18:41:18 +00:00
Makefile Modify "release" to invoke "make distribution" instead of "make build", 2005-08-25 02:04:39 +00:00
Makefile.inc
UPDATING note about conf/std. 2005-10-03 04:45:52 +00:00
build.sh It needs the braceexpand option for PD KSH, regardless of 2005-09-25 05:34:21 +00:00