Feature #1146
closedfind should support -iname
100%
Description
Now we have an fnmatch(), we should add find -iname support (this maybe supported already in the new fnmatch, but if not it should be added).
Related issues
Updated by Yuri Pankov almost 12 years ago
It is supported, but is missing from manpage (FNM_IGNORECASE).
Updated by Yuri Pankov almost 12 years ago
I've added -iname as well as -print0, -useracl, -groupacl (returning true if the file/directory has non-trivial ACEs for specified user/group), -iregex, -regex (#674). If there is any interest in changes other than -iname and -regex I'll submit a review with all changes, otherwise please tell me and I'll make a review only for -iname and -regex.
Updated by Alexander Eremin almost 12 years ago
Yuri Pankov wrote:
I've added -iname as well as -print0, -useracl, -groupacl (returning true if the file/directory has non-trivial ACEs for specified user/group), -iregex, -regex (#674). If there is any interest in changes other than -iname and -regex I'll submit a review with all changes, otherwise please tell me and I'll make a review only for -iname and -regex.
For 'find' I'd like all changes ;)
Updated by Alasdair Lumsden almost 12 years ago
If we're enhancing find, can we have -maxdepth and -delete?
Updated by Yuri Pankov almost 12 years ago
No problem in adding these primaries if those caring about strictly conforming to POSIX are ok with them :-)
Updated by Igor Kozhukhov almost 12 years ago
what news about implementation '-maxdepth' to 'find' ?
it is feature very often is using in scripts.
Updated by Albert Lee over 11 years ago
- Category set to cmd - userland programs
- Status changed from New to Resolved
- Assignee set to Yuri Pankov
- % Done changed from 0 to 100
Fixed in:
changeset: 13450:911d80518e4e
tag: tip
user: Yuri Pankov <yuri.pankov@nexenta.com>
date: Tue Sep 13 12:11:38 2011 -0400
files: usr/src/cmd/find/find.c usr/src/man/man1/find.1
description:
674 find does not support regex
1146 find should support -iname
1448 find should support -mindepth, -maxdepth
1449 Add -useracl, -groupacl primaries to find
1468 find should support -print0
Reviewed by: Dan McDonald <danmcd@nexenta.com>
Reviewed by: Igor Kozhukhov <ikozhukhov@gmail.com>
Approved by: Albert Lee <trisk@nexenta.com>