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

Re: [PATCH 1/3] t/lib-httpd: avoid using BSD's sed

From
Johannes Schindelin <johannes.schindelin@gmx.de>
Date
Feb 27, 2020, 15:40 UTC
Message-ID
<nycvar.QRO.7.76.6.2002271640320.46@tvgsbejvaqbjf.bet>
In-Reply-To
<CAPyFy2ArnEFe33GFLsbcOEV37DZ=VJpF-Sckn-V_tJUrToir=w@mail.gmail.com>
Hi Ed,
On Wed, 26 Feb 2020, Ed Maste wrote:
Show 20 quoted lines
> On Wed, 26 Feb 2020 at 15:09, Johannes Schindelin via GitGitGadget
> <gitgitgadget@gmail.com> wrote:
> >
> > From: Johannes Schindelin <johannes.schindelin@gmx.de>
> >
> > Among other differences relative to GNU sed, BSD sed always ends its
> > output with a trailing newline, even if the input did not have such a
> > trailing newline.
> >
> > Surprisingly, this makes three httpd-based tests fail on macOS: t5616,
> > t5702 and t5703. ("Surprisingly" because those tests have been around
> > for some time, but apparently nobody runs them on macOS with a working
> > Apache2 setup.)
>
> Hmm, this is interesting - all tests (that are executed) are passing
> on FreeBSD, in CI.
>
> I tried on FreeBSD and do not see a trailing newline added; I'm not
> sure how sed behaves on other BSDs. However, you probably want to
> refer to macOS sed rather than BSD sed in the commit.

My bad. I looked at StackOverflow and there the claim was that all BSD seds behave that way.

Of course, SO always lags behind by a couple years (although even such old threads are often very useful), so it is possible that _old_ BSD sed behaved that way.

In any case, I adjusted the commit message.

Related, I saw that Cirrus CI offers FreeBSD builds, maybe you'd be interested in supporting that out of the box in https://github.com/git/git?

Ciao, Dscho

Previous: Ed MasteNext: Ed Maste
Message 5 of 16 in “ci: upgrade to the latest Azure Pipelines agent pools”
  1. 0/3 ci: upgrade to the latest Azure Pipelines agent poolsJohannes Schindelin via GitGitGadget, Feb 26, 2020
  2. 3/3 Azure Pipeline: switch to the latest agent poolsJohannes Schindelin via GitGitGadget, Feb 26, 2020
  3. 1/3 t/lib-httpd: avoid using BSD's sedJohannes Schindelin via GitGitGadget, Feb 26, 2020
  4. Ed MasteFeb 26, 2020
  5. Johannes SchindelinFeb 27, 2020
  6. Ed MasteFeb 27, 2020
  7. Johannes SchindelinFeb 27, 2020
  8. CI/PR builds on FreeBSD, was Re: [PATCH 1/3] t/lib-httpd: avoid using BSD's sedJohannes Schindelin, Feb 28, 2020
  9. Junio C HamanoFeb 26, 2020
  10. Junio C HamanoFeb 26, 2020
  11. Johannes SchindelinFeb 27, 2020
  12. 2/3 ci: prevent `perforce` from being quarantinedJohannes Schindelin via GitGitGadget, Feb 26, 2020
  13. 0/3 ci: upgrade to the latest Azure Pipelines agent poolsJohannes Schindelin via GitGitGadget, Feb 27, 2020
  14. 2/3 ci: prevent `perforce` from being quarantinedJohannes Schindelin via GitGitGadget, Feb 27, 2020
  15. 3/3 Azure Pipeline: switch to the latest agent poolsJohannes Schindelin via GitGitGadget, Feb 27, 2020
  16. 1/3 t/lib-httpd: avoid using macOS' sedJohannes Schindelin via GitGitGadget, Feb 27, 2020

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.