summaryrefslogtreecommitdiffstats
path: root/parse.c
Commit message (Collapse)AuthorAgeFilesLines
* parse: Set always_true for some actions that never return falseTavian Barnes2017-05-171-3/+25
|
* Add colors to -D treeTavian Barnes2017-05-151-37/+44
|
* Optimize based on reachability due to -quitTavian Barnes2017-05-151-43/+83
|
* Don't make -quit disable the implicit -printTavian Barnes2017-05-111-1/+1
|
* Implement -D execTavian Barnes2017-05-091-1/+6
|
* Don't parse the mount table until it's neededTavian Barnes2017-04-291-8/+7
|
* Release 1.01.0Tavian Barnes2017-04-241-1/+1
|
* Implement -fstypeTavian Barnes2017-04-231-2/+28
| | | | Fixes #6!
* Make -help output prettier and more completeTavian Barnes2017-04-161-37/+207
|
* Implement -XTavian Barnes2017-04-161-0/+10
|
* Implement -exec/-execdir ... +Tavian Barnes2017-04-151-22/+13
|
* Respect -nocolor for -fprint /dev/stdoutTavian Barnes2017-03-161-2/+16
|
* Give struct expr a CFILE* instead of just a FILE*Tavian Barnes2017-03-161-11/+18
| | | | This unifies the behaviour of -print and -fprint /dev/stdout.
* Implement -ls and -flsTavian Barnes2017-03-111-11/+50
|
* Make a printf()-style API for colored messagesTavian Barnes2017-03-111-104/+81
|
* Allow short-circuiting optimizations with non-pure operandsTavian Barnes2017-02-111-14/+38
|
* parse: Factor out all "looks like icmp" checksTavian Barnes2017-02-091-11/+16
|
* Add support for -x?type with multiple typesTavian Barnes2017-02-081-34/+59
| | | | This functionality is already part of GNU findutils git.
* Bail out if parse_root() failsTavian Barnes2017-02-071-44/+88
| | | | | | Previously, skip_paths() did not distinguish between end-of-arguments and parse_root() failing, returning NULL in both cases. If parse_root() failed, parsing would attempt to continue, in an unexpected state.
* Add some missing perror() callsTavian Barnes2017-02-071-14/+18
|
* Implement -printf/-fprintfTavian Barnes2017-02-051-4/+68
| | | | | Based on a patch by Fangrui Song <i@maskray.me>. Closes #16.
* Implement -nouser and -nogroupTavian Barnes2017-02-041-0/+16
|
* Add some text to the -help outputTavian Barnes2016-12-201-1/+27
|
* Implement -mnewerTavian Barnes2016-12-201-0/+1
|
* Add tera and peta suffices for -sizeTavian Barnes2016-12-201-1/+7
|
* Implement -sparse from FreeBSD findTavian Barnes2016-12-201-0/+8
|
* Support -[gu]id NAME like BSD findTavian Barnes2016-12-201-24/+10
|
* Don't check errno after get{gr,pw}nam()Tavian Barnes2016-12-201-24/+6
| | | | | Turns out it doesn't always keep errno 0, even if the only problem is a failed lookup. This was observed on a machine with Kerberos auth.
* Implement BSD find's -depth NTavian Barnes2016-12-181-1/+18
|
* Add support for -x (same as -mount/-xdev, from BSD)Tavian Barnes2016-12-181-0/+1
|
* Implement -regex, -iregex, and -regextype/-ETavian Barnes2016-12-181-2/+114
|
* Move portability code into util.hTavian Barnes2016-12-041-0/+1
|
* bftw: Make bftw_flags more similar to fts() options.Tavian Barnes2016-11-211-9/+9
|
* Support -perm +MODE for symbolic modes.Tavian Barnes2016-11-211-4/+0
| | | | Only things like -perm +777 are disallowed by GNU find.
* parse: Don't print warnings if standard in is not a terminal.Tavian Barnes2016-11-131-1/+1
|
* Implement -perm.Tavian Barnes2016-10-291-9/+268
|
* parse: Use free_expr(expr), not free(expr).Tavian Barnes2016-10-241-7/+7
|
* Implement -ignore_readdir_race.Tavian Barnes2016-10-241-5/+19
|
* Check for POSIX timers before using them.Tavian Barnes2016-10-241-2/+25
|
* bftw: Add support for some exotic file types, where available.Tavian Barnes2016-10-021-0/+3
|
* parse: Ignore -- on the command line.Tavian Barnes2016-10-021-5/+21
| | | | | | | | | | | | | | | | | | find uses -- to indicate the end of the flags. That is, $ find -L -- -type f is allowed, but $ find -- -L -type f results in an error about an unknown predicate `-L`. This behaviour doesn't seem particularly useful -- in particular, unlike most other tools, it doesn't help you if you want to specify a filename beginning with a -. So to ensure bfs is compatible with all GNU find command lines, we just ignore -- whenever it appears.
* Give suggestions for operators too.Tavian Barnes2016-09-061-19/+47
|
* Use the two-star list augmenting method.Tavian Barnes2016-09-051-8/+4
|
* Require -{min,max}depth argument to be positive.Tavian Barnes2016-09-041-1/+1
|
* Implement typo detection for literals.Tavian Barnes2016-09-041-1/+12
|
* Use a table-driven parser for literals.Tavian Barnes2016-09-041-291/+281
|
* Implement -f PATH from BSD find.Tavian Barnes2016-07-131-1/+28
|
* Use a linked list to store the root paths.Tavian Barnes2016-07-131-23/+38
|
* Implement -D rates.Tavian Barnes2016-06-281-11/+30
|
* Use underscores.Tavian Barnes2016-06-191-24/+24
|