Age | Commit message (Collapse) | Author | |
---|---|---|---|
2022-02-24 | Makefile: Automatically discover the right flags to build with Oniguruma | Tavian Barnes | |
Fixes #82. | |||
2022-02-23 | regex: Always set REG_STARTEND if available | Tavian Barnes | |
2022-02-23 | regex: Use onig_match() to implement BFS_REGEX_ANCHOR | Tavian Barnes | |
2022-02-22 | Release 2.42.4 | Tavian Barnes | |
2022-02-22 | README: Reformat with details blocks to make it more easily skimmable | Tavian Barnes | |
And add some extra information about bfs-specific features, and installing dependencies. | |||
2022-02-21 | Use EXTRA_CFLAGS instead of CFLAGS in make distcheck | Tavian Barnes | |
2022-02-21 | Enable Oniguruma by default | Tavian Barnes | |
2022-02-21 | regex: Use the real Oniguruma API, not the POSIX wrapper | Tavian Barnes | |
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. | |||
2022-02-21 | regex: Wrap the POSIX API in a facade | Tavian Barnes | |
2022-02-18 | tests: Mark -fprint/-exec flushing test bfs-specific | Tavian Barnes | |
GNU find doesn't do it, so no reason to require it for compatibility. | |||
2022-02-11 | exec: Flush I/O streams before executing anything | Tavian Barnes | |
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. | |||
2022-02-11 | ctx: Also check ferror(stdout) | Tavian Barnes | |
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. | |||
2022-02-11 | tests: Use skip_if for tests that need /dev/full | Tavian Barnes | |
2022-02-10 | tests: Add a test that -exit suppresses the implicit -print | Tavian Barnes | |
2022-02-09 | Makefile: Allow extra flags to be passed with EXTRA_*FLAGS variables | Tavian Barnes | |
2022-02-08 | tests: Skip case insensitive tests if FNM_CASEFOLD is missing | Tavian Barnes | |
2022-02-08 | tests: Separate skipped tests from passing tests | Tavian Barnes | |
2022-02-04 | tests: Disable some glob tests on macOS | Tavian Barnes | |
macOS seems to have a non-compliant fnmatch() that doesn't treat invalid character class expressions literally. | |||
2022-02-04 | regex: Add support for emacs and grep types | Tavian Barnes | |
2022-02-02 | tests: Add tests for syntactically invalid globs | Tavian Barnes | |
2022-02-01 | tests: New tests for -i?wholename | Tavian Barnes | |
2022-02-01 | tests: New test for ** in a glob | Tavian Barnes | |
2022-02-01 | tests: New test for -prune on a non-directory | Tavian Barnes | |
2022-02-01 | tests: Try to color diff output | Tavian Barnes | |
2022-02-01 | tests: set -P for the whole script | Tavian Barnes | |
We rely on physical path resolution in test_execdir_pwd. | |||
2022-02-01 | tests: Allow tests.sh to be invoked from any directory | Tavian Barnes | |
This also resolves the path passed to --bfs early, so --bfs=./bfs now works. | |||
2022-01-30 | parse: Add support for ed and sed regexes | Tavian Barnes | |
They're apparently the same as POSIX basic regexes. | |||
2022-01-29 | Revert "tests: Add a test for posix-basic alternation" | Tavian Barnes | |
Turns out alternation is not actually part of the POSIX basic regular expression language, it's just a glibc extension. This reverts commit c898af13a671ee92a056467d324f16823594eb1c. | |||
2022-01-29 | tests: Add a test for posix-basic alternation | Tavian Barnes | |
2022-01-29 | Standardize WITH_* make variables for configuring dependencies | Tavian Barnes | |
2022-01-29 | Merge pull request #81 from data-man:oniguruma_1 | Tavian Barnes | |
2022-01-24 | Apply suggestions from code review | data-man | |
2022-01-24 | Simplifying | data-man | |
2022-01-24 | Using Oniguruma library (optionally) | data-man | |
2022-01-21 | Release 2.3.12.3.1 | Tavian Barnes | |
2022-01-18 | bftw: Use a dynamic array for the cache | Tavian Barnes | |
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. | |||
2022-01-18 | darray: New DARRAY_POP() macro | Tavian Barnes | |
2022-01-18 | dstring: Set a minimum capacity to avoid reallocating for small strings | Tavian Barnes | |
2022-01-18 | tests: Add missing license headers | Tavian Barnes | |
2022-01-18 | tests/trie: Fix "handling" typo | Tavian Barnes | |
2022-01-18 | util: New close() wrappers to check for EBADF and preserve errno | Tavian Barnes | |
2022-01-18 | dir: Fix extra close() if fdopendir() fails | Tavian Barnes | |
2022-01-18 | Add some missing (void)'s | Tavian Barnes | |
2021-12-19 | ci/macos: Switch back to macos-latest | Tavian Barnes | |
2021-12-10 | ci/macos: Downgrade to macOS 10.15 | Tavian Barnes | |
macOS 11 comes with a broken touch(1) that ignores -h. Work around it for now by downgrading macOS. Link: https://apple.stackexchange.com/a/425730/397839 | |||
2021-12-10 | tests: Set TZ to a real timezone | Tavian Barnes | |
POSIX states that the offset is not optional in the TZ environment variable. Link: https://pubs.opengroup.org/onlinepubs/9699919799/basedefs/V1_chap08.html | |||
2021-12-10 | stat: Work around GNU Hurd bug | Tavian Barnes | |
fstatat(fd, "", buf, AT_EMPTY_PATH) fails with a nonsense errno on Hurd. Since fstat() itself works fine, just use that. Link: https://lists.gnu.org/archive/html/bug-hurd/2021-12/msg00001.html | |||
2021-12-05 | eval: Check that RLIM_SAVED_{CUR,MAX} are defined before using them | Tavian Barnes | |
Apparently they're missing on Debian kfreebsd: https://buildd.debian.org/status/fetch.php?pkg=bfs&arch=kfreebsd-amd64&ver=2.3-1&stamp=1638379495&raw=0 | |||
2021-11-25 | ci/freebsd: Don't pin an old tailscale version2.3 | Tavian Barnes | |
2021-11-25 | Release 2.3 | Tavian Barnes | |