On 2023/09/09 23:51:20 +0800, lux <l...@shellcodes.org> wrote: > Github: https://github.com/vrothberg/vgrep > > The built-in grep command in OpenBSD is currently not supported, but it > works well with git-grep and ripgrep. I have tested it on AMD64 7.3 and > it works fine for me.
Haven't tried the port, but have you tried if removing --color from the grep invocation (using a custom patch) works? Looking at the code they use --color=auto which our grep (rightly IMHO) doesn't support, but quickly looking at the code they don't seem to care about the escapes being there. If you go this route you may also consider changing -Z with --null. They seem to assume that -Z is to NUL terminate the file names, while in our and other grep(1) implementations is to force grep to behave as zgrep, we have --null for that. IIUC --null is more portable than -Z.