On Wed, 2023-10-18 at 21:09 +0800, lux wrote: > On Sat, 2023-09-09 at 17:38 +0000, Omar Polo wrote: > > 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. > > > > > > > Hi, > vgrep now has OpenBSD support[1], I'm repost the port file. > > Thanks. > > [1]: https://github.com/vrothberg/vgrep/releases
ping