git/list[1] front-page[2] threads[3] people[4] search[5] about
 

Re: t2400 on freebsd12

From
Jacob Abel <jacobabel@nullpo.dev>
Date
Jul 15, 2023, 03:02 UTC
Message-ID
<dk2fndv5aqshkgvfq55mrr5chdouenszedugyjoezcuatrsmn6@vqyih7nbqwbu>
In-Reply-To
<CAPig+cRMXJkrEgyVtC0u2QK=5QNnJOQnXBU_rE+JiGufEYH9sg@mail.gmail.com>
On 23/07/14 12:19PM, Eric Sunshine wrote:
Show 14 quoted lines
>
> [...]
> 
> I haven't been following this thread closely, but I wonder if the
> `grep` introduced by patch [3/8] of the cited patch series is
> problematic:
> 
>     grep -E "fatal:( options)? .* cannot be used together" actual
> 
> since BSD lineage regexp (including macOS) historically did not
> support the "?" repetition operator. Perhaps an easy fix would be to
> simplify this to:
> 
>     grep "cannot be used together" actual

Thank you for this insight. It didn't end up being exactly this issue but it seems to be a grep issue nonetheless. I've submitted a patch [1] which should resolve the issue (I tested it on a freebsd12 VM locally).

The TLDR of the issue is that grep 2.5 (GNU or BSD) doesn't seem to recognise `\s` (or its inverted counterpart) as ERE but newer GNU (and potentially other) grep versions do.

1. https://lore.kernel.org/git/20230715025512.7574-1-jacobabel@nullpo.dev/
Previous: Junio C HamanoNext: Eric Sunshine
Message 10 of 11 in “t2400 on freebsd12”
  1. D. Ben KnobleJul 6, 2023
  2. D. Ben KnobleJul 13, 2023
  3. Junio C HamanoJul 13, 2023
  4. Eric SunshineJul 13, 2023
  5. D. Ben KnobleJul 13, 2023
  6. Jacob AbelJul 14, 2023
  7. Eric SunshineJul 14, 2023
  8. Jacob AbelJul 14, 2023
  9. Junio C HamanoJul 14, 2023
  10. Jacob AbelJul 15, 2023
  11. Eric SunshineJul 16, 2023

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.