summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
...
* parse: Check for globs with unescaped trailing backslashesTavian Barnes2022-02-282-5/+23
| | | | | | | | | | Both macOS and musl fail to fail on an unescaped backslash, so check for it ourselves. Link: https://pubs.opengroup.org/onlinepubs/9699919799/functions/fnmatch.html Link: https://github.com/void-linux/void-packages/pull/35836 Link: https://www.openwall.com/lists/musl/2022/02/25/2 Link: https://www.austingroupbugs.net/view.php?id=806
* Release 2.4.12.4.1Tavian Barnes2022-02-243-2/+16
|
* README: Fix CI status badgesTavian Barnes2022-02-242-4/+2
|
* regex: Rework error handlingTavian Barnes2022-02-245-91/+102
|
* regex: Use the encoding from the current localeTavian Barnes2022-02-243-10/+94
|
* regex: Test if the string is valid before matchingTavian Barnes2022-02-241-0/+8
|
* ci: Unify multiple workflows into one with separate jobsTavian Barnes2022-02-244-89/+87
|
* ci/freebsd: Fix missing trailing single quoteTavian Barnes2022-02-241-1/+1
|
* Makefile: Automatically discover the right flags to build with OnigurumaTavian Barnes2022-02-242-5/+12
| | | | Fixes #82.
* regex: Always set REG_STARTEND if availableTavian Barnes2022-02-231-5/+3
|
* regex: Use onig_match() to implement BFS_REGEX_ANCHORTavian Barnes2022-02-231-10/+8
|
* Release 2.42.4Tavian Barnes2022-02-223-2/+21
|
* README: Reformat with details blocks to make it more easily skimmableTavian Barnes2022-02-221-30/+111
| | | | | And add some extra information about bfs-specific features, and installing dependencies.
* Use EXTRA_CFLAGS instead of CFLAGS in make distcheckTavian Barnes2022-02-211-1/+1
|
* Enable Oniguruma by defaultTavian Barnes2022-02-214-7/+15
|
* regex: Use the real Oniguruma API, not the POSIX wrapperTavian Barnes2022-02-211-11/+84
| | | | | | | Not every Oniguruma installation enables the POSIX wrapper, so we need our own wrapper for portability. As well, older versions of Oniguruma have symbol clashes with libc for the POSIX regex API, so using it can be unsafe.
* regex: Wrap the POSIX API in a facadeTavian Barnes2022-02-217-63/+152
|
* tests: Mark -fprint/-exec flushing test bfs-specificTavian Barnes2022-02-181-2/+3
| | | | GNU find doesn't do it, so no reason to require it for compatibility.
* exec: Flush I/O streams before executing anythingTavian Barnes2022-02-115-1/+67
| | | | | | Otherwise output from commands may appear unexpectedly earlier than output from bfs. We use fflush(NULL) to flush all streams, which is more than GNU find does, but seems to be a useful extension.
* ctx: Also check ferror(stdout)Tavian Barnes2022-02-111-15/+27
| | | | | | Previously this was checked for all other files, but for stdout we just checked the return value of fflush(). Checking ferror() makes sure we don't miss any errors that occurred on a previous flush.
* tests: Use skip_if for tests that need /dev/fullTavian Barnes2022-02-111-22/+14
|
* tests: Add a test that -exit suppresses the implicit -printTavian Barnes2022-02-102-0/+5
|
* Makefile: Allow extra flags to be passed with EXTRA_*FLAGS variablesTavian Barnes2022-02-091-4/+4
|
* tests: Skip case insensitive tests if FNM_CASEFOLD is missingTavian Barnes2022-02-081-0/+5
|
* tests: Separate skipped tests from passing testsTavian Barnes2022-02-081-34/+39
|
* tests: Disable some glob tests on macOSTavian Barnes2022-02-041-0/+10
| | | | | macOS seems to have a non-compliant fnmatch() that doesn't treat invalid character class expressions literally.
* regex: Add support for emacs and grep typesTavian Barnes2022-02-0411-31/+151
|
* tests: Add tests for syntactically invalid globsTavian Barnes2022-02-0213-0/+46
|
* tests: New tests for -i?wholenameTavian Barnes2022-02-013-0/+26
|
* tests: New test for ** in a globTavian Barnes2022-02-012-0/+9
|
* tests: New test for -prune on a non-directoryTavian Barnes2022-02-012-0/+15
|
* tests: Try to color diff outputTavian Barnes2022-02-011-11/+18
|
* tests: set -P for the whole scriptTavian Barnes2022-02-011-2/+1
| | | | We rely on physical path resolution in test_execdir_pwd.
* tests: Allow tests.sh to be invoked from any directoryTavian Barnes2022-02-012-14/+22
| | | | | This also resolves the path passed to --bfs early, so --bfs=./bfs now works.
* parse: Add support for ed and sed regexesTavian Barnes2022-01-304-1/+20
| | | | They're apparently the same as POSIX basic regexes.
* Revert "tests: Add a test for posix-basic alternation"Tavian Barnes2022-01-292-7/+0
| | | | | | | Turns out alternation is not actually part of the POSIX basic regular expression language, it's just a glibc extension. This reverts commit c898af13a671ee92a056467d324f16823594eb1c.
* tests: Add a test for posix-basic alternationTavian Barnes2022-01-292-0/+7
|
* Standardize WITH_* make variables for configuring dependenciesTavian Barnes2022-01-297-32/+54
|
* Merge pull request #81 from data-man:oniguruma_1Tavian Barnes2022-01-297-6/+37
|\
| * Apply suggestions from code reviewdata-man2022-01-242-12/+8
| |
| * Simplifyingdata-man2022-01-246-31/+31
| |
| * Using Oniguruma library (optionally)data-man2022-01-246-5/+40
|/
* Release 2.3.12.3.1Tavian Barnes2022-01-213-2/+16
|
* bftw: Use a dynamic array for the cacheTavian Barnes2022-01-181-45/+42
| | | | | | | Since commit 69a5227 ("eval: Raise RLIMIT_NOFILE if possible"), bfs can pass a large nopenfd (e.g. 512K) to bftw() by default. This resulted in a large up-front allocation even for small trees. Change it to grow on demand, lowering the footprint for small searches.
* darray: New DARRAY_POP() macroTavian Barnes2022-01-182-2/+34
|
* dstring: Set a minimum capacity to avoid reallocating for small stringsTavian Barnes2022-01-181-1/+6
|
* tests: Add missing license headersTavian Barnes2022-01-182-0/+32
|
* tests/trie: Fix "handling" typoTavian Barnes2022-01-181-1/+1
|
* util: New close() wrappers to check for EBADF and preserve errnoTavian Barnes2022-01-189-53/+66
|
* dir: Fix extra close() if fdopendir() failsTavian Barnes2022-01-181-2/+4
|