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

Portability of git shell scripts?

From
Armin Kunaschik <megabreit@googlemail.com>
Date
May 4, 2016, 18:17 UTC
Message-ID
<CALR6jEh5dAcnqiyo4kXkj+8imfQQd0nT=baPOW_qbJpJwmFsyw@mail.gmail.com>
Hi list,

I'm trying to compile/test/use git 2.8.2 on AIX 6.1 with no bash available. /bin/sh is a hard link to /bin/ksh which is a ksh88, a posix shell. Is this supposed to work?

As an example: make test fails on nearly every t34* test and on tests which contain rebase. The installation of bash (and manually changing the shebang to /bin/bash) "fixes" all rebase test failures. So obviously git-rebase is not portable at some point.

Does it make any sense to put work into making these scripts portable, that is, work with posix shells? And, as last resort, is it possible to configure git use bash in some or all shell scripts?

Regards, Armin

Next: Torsten Bögershausen
Message 1 of 5 in “Portability of git shell scripts?”
  1. Armin KunaschikMay 4, 2016
  2. Torsten BögershausenMay 4, 2016
  3. Jeff KingMay 4, 2016
  4. Armin KunaschikMay 6, 2016
  5. Jeff KingMay 7, 2016

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.