christos
792c142038
use O_CLOEXEC, wrap long line.
2013-01-24 17:50:08 +00:00
joerg
6818646ac8
Use __dead
2011-09-16 15:39:25 +00:00
christos
d6d145ee46
only setup siginfo handler if we have a tty.
2010-12-28 15:28:31 +00:00
lukem
98e5374ccb
Remove the \n and tabs from the __COPYRIGHT() strings.
...
Tweak to use a consistent format.
2008-07-21 14:19:20 +00:00
daniel
02dcfb175e
Add the '-E' option to interpret regexes as extended regexes. While we
...
are here, fix ordering in usage information by putting '-X' in the proper
place.
Addition of '-E' was discussed on tech-userlevel.
2007-07-19 07:49:30 +00:00
christos
1dcd74fde3
eliminate alloca use.
2006-11-09 20:50:53 +00:00
apb
2eed134b40
De-__P(), remove trailing spaces, sprinkle a few const, WARNS=4.
2006-10-11 19:51:10 +00:00
elad
47ebf29d74
Revert, as requested by cube@.
2005-10-19 12:25:51 +00:00
elad
7f482dd3ce
Strip trailing slashes before using the path.
...
PR/31869.
2005-10-19 12:17:22 +00:00
mrg
3a96c9add9
add a "file" to the arguments that isn't enclosed in square brackets
...
making it clear that at least one file/directory argument is required
in both the manual and usage. "find" with no args currently barfs but
these documents implied it would do something useful.
2005-08-10 06:51:24 +00:00
mycroft
c860ec870a
Use FD_CLOEXEC (for -exec).
2005-01-19 01:03:16 +00:00
agc
89aaa1bb64
Move UCB-licensed code from 4-clause to 3-clause licence.
...
Patches provided by Joel Baker in PR 22365, verified by myself.
2003-08-07 11:13:06 +00:00
thorpej
386e1779c2
Need <string.h>.
2002-09-27 23:29:12 +00:00
provos
9972ef9ff8
support for -empty, -execdir, -mindepth, -maxdepth to match other UNIX-like
...
systems. based on work by tholo@openbsd.org . approved by perry.
2002-09-27 15:56:25 +00:00
enami
6fc4763861
If -H, clear FTS_LOGICAL and set FTS_PHYSICAL as well as FTS_COMFOLLOW.
...
If -L, clear FTS_PHYSICAL as well as FTS_COMFOLLOW.
2000-08-04 09:01:05 +00:00
enami
1ab3345f20
Compare the return value of getopt(3) against -1 rather than EOF.
...
(while i'm here, one more cosometic change is performed).
2000-03-16 18:47:48 +00:00
enami
7b4bdbc144
Cosmetic changes.
2000-03-16 18:44:29 +00:00
itohy
f1042d894e
Add -s in usage.
2000-03-13 08:21:36 +00:00
kleink
41ab7b6729
Use strcoll() to sort directory entries.
2000-03-10 14:50:36 +00:00
itohy
6baa6f27af
Add -s (sort) option, which causes entries in each directory sorted.
...
Similar to FreeBSD's.
2000-03-10 11:46:04 +00:00
simonb
d8b807ed6d
Add 'h' to optstring. Fixes PR 7492 from Tom Trebisky.
1999-04-29 02:23:58 +00:00
cgd
c62f53ae70
allocate temporary storage for directory list, rather than clobbering
...
argv (yuck!).
1998-02-10 21:52:51 +00:00
mrg
7b983ca6d5
merge lite2, sans getvfsbyname in functions.c (waiting on libc)
1998-02-02 14:02:06 +00:00
lukem
403b699b0b
fix .Nm usage, deprecate register, mostly WARNSify (needs minor rewrite to fix)
1997-10-19 11:52:12 +00:00
lukem
906b60f5e0
getopt returns -1 not EOF
1997-10-18 14:49:41 +00:00
tls
9d225a1783
RCS ID police
1997-01-09 20:18:21 +00:00
jtc
35104de52f
Changed order of the subexpressions in a conditional to guard against
...
the case of zero length arguments.
1994-01-24 23:08:15 +00:00
jtc
3dfa59ec4a
Merged our bugfixes with the 4.4BSD find from uunet.
1993-12-30 21:15:18 +00:00
jtc
7c609895ee
Changed to conform to POSIX.2, 4.24.4: the first argument that starts with
...
a -, or is a ! or a (, and all subsequent arguments shall be interpreted
as an expression ...
The behavior before this change can cause a non-option (eg -owner instead
of -user) to be interpreted as a file name. Depending on the expression
used, this could cause serious damage:
find . -owner jtc -exec rm \{\} \;
Will delete every file.
1993-12-29 22:00:13 +00:00
mycroft
e9d867ef50
Add RCS identifiers.
1993-08-01 17:54:45 +00:00
cgd
61f282557f
initial import of 386bsd-0.1 sources
1993-03-21 09:45:37 +00:00