From owner-cvs-all Fri Feb 23 8:21: 3 2001 Delivered-To: cvs-all@freebsd.org Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by hub.freebsd.org (Postfix) with ESMTP id E96EB37B4EC; Fri, 23 Feb 2001 08:20:55 -0800 (PST) (envelope-from knu@FreeBSD.org) Received: (from knu@localhost) by freefall.freebsd.org (8.11.1/8.11.1) id f1NGKtu01150; Fri, 23 Feb 2001 08:20:55 -0800 (PST) (envelope-from knu) Message-Id: <200102231620.f1NGKtu01150@freefall.freebsd.org> From: Akinori MUSHA Date: Fri, 23 Feb 2001 08:20:55 -0800 (PST) To: cvs-committers@FreeBSD.org, cvs-all@FreeBSD.org Subject: cvs commit: src/usr.bin/find extern.h find.1 find.c find.h function.c main.c option.c X-FreeBSD-CVS-Branch: HEAD Sender: owner-cvs-all@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG knu 2001/02/23 08:20:55 PST Modified files: usr.bin/find extern.h find.1 find.c find.h function.c main.c option.c Log: Implement the following options and primaries: -E Interpret regular expressions followed by -regex and -iregex op- tions as extended (modern) regular expressions rather than basic regular expressions (BRE's). The re_format(7) manual page fully describes both formats. -iname pattern Like -name, but the match is case insensitive. -ipath pattern Like -path, but the match is case insensitive. -regex pattern True if the whole path of the file matches pattern using regular expression. To match a file named ``./foo/xyzzy'', you can use the regular expression ``.*/[xyz]*'' or ``.*/foo/.*'', but not ``xyzzy'' or ``/foo/''. -iregex pattern Like -regex, but the match is case insensitive. These are meant to be compatible with other find(1) implementations such as GNU's or NetBSD's except regexp library differences. Reviewed by: sobomax, dcs, and some other people on -current Revision Changes Path 1.12 +6 -1 src/usr.bin/find/extern.h 1.32 +41 -3 src/usr.bin/find/find.1 1.9 +2 -1 src/usr.bin/find/find.c 1.10 +7 -3 src/usr.bin/find/find.h 1.29 +156 -2 src/usr.bin/find/function.c 1.11 +8 -3 src/usr.bin/find/main.c 1.12 +6 -1 src/usr.bin/find/option.c To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe cvs-all" in the body of the message