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

Re: Solaris sed

From
Eric Sunshine <sunshine@sunshineco.com>
Date
Jun 13, 2025, 20:23 UTC
Message-ID
<CAPig+cSu7+fxveULiB1vDbcy6Cnia_5isVVy+RCO+HGAyr8uvg@mail.gmail.com>
In-Reply-To
<5895400.DvuYhMxLoT@cayenne>
On Fri, Jun 13, 2025 at 4:15 PM Jean-Noël AVILA <jn.avila@free.fr> wrote:
> Would it be possible to set up some kind of CI to check for compatibility with
> such systems. This is the second time I introduced regressions without even
> knowing it, and it would be really great to catch them before borking a
> release process.

Had this been in a test script, it would have been caught by t/check-non-portable-shell.sh. We may want to apply the check to build-related scripts, as well. For instance, it would have caught the -E problem:

    % ./t/check-non-portable-shell.pl generate-*.sh
    generate-configlist.sh:16: error: sed option not portable (use
only -n, -e, -f): sed -E '
    %

You can, of course, run check-non-portable-shell.pl manually after editing a script, but perhaps this check could be enabled by a (hopefully) minor tweak to the main Git Makefile?

Previous: Jean-Noël AVILANext: Collin Funk
Message 11 of 15 in “Solaris sed”
  1. Brad SmithJun 12, 2025
  2. Collin FunkJun 12, 2025
  3. Brad SmithJun 12, 2025
  4. Eli SchwartzJun 12, 2025
  5. Collin FunkJun 12, 2025
  6. Brad SmithJun 12, 2025
  7. Junio C HamanoJun 12, 2025
  8. Brad SmithJun 12, 2025
  9. Collin FunkJun 12, 2025
  10. Jean-Noël AVILAJun 13, 2025
  11. Eric SunshineJun 13, 2025
  12. Collin FunkJun 13, 2025
  13. Eric SunshineJun 12, 2025
  14. Paul SmithJun 12, 2025
  15. Eric SunshineJun 12, 2025

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.