Re: [PATCH v2 06/10] t3404: work around platform-specific behaviour on macOS 10.15
- From
James Liu <james@jamesliu.io>
- Date
- Oct 16, 2024, 06:02 UTC
- Message-ID
- <D4X03LIWX1C0.1RGNH9U3SMF51@jamesliu.io>
- In-Reply-To
- <1daadd82766a59577580dc386b91a942b0df6e15.1728992306.git.ps@pks.im>
On Tue Oct 15, 2024 at 10:45 PM AEDT, Patrick Steinhardt wrote:
Show 6 quoted lines
> Two of our tests in t3404 use indented HERE docs where leading tabs on > some of the lines are actually relevant. The tabs do get removed though, > and we try to fix this up by using sed(1) to replace leading tabs in the > actual output, as well. But macOS 10.15 uses an oldish version of sed(1) > that has BSD lineage, which does not understand "\t", and thus we fail > to strip those leading tabs and fail the test.
The subtle differences in BSD and GNU-sed have caused me some headache in the past. I always work around the problem locally by installing the `gnu-sed` package via Homebrew, but it's better to change the test here.