Re: Portability of git shell scripts?
- From
Torsten Bögershausen <tboegi@web.de>
- Date
- May 4, 2016, 18:35 UTC
- Message-ID
- <cdb4e001-7dc7-3c3b-27ca-2c970135805a@web.de>
- In-Reply-To
- <CALR6jEh5dAcnqiyo4kXkj+8imfQQd0nT=baPOW_qbJpJwmFsyw@mail.gmail.com>
On 04.05.16 20:17, Armin Kunaschik wrote:
Show 19 quoted lines
> 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
The Makefile has a knob to use a specifc shell:
# Define SHELL_PATH to a POSIX shell if your /bin/sh is broken.
Does this help ?
Otherwise: I don't know how much posix ksh88 is, it may help, if you can post some output ?
I use sometimes debug=t verbose=t ./t34XXXX.sh 2>&1 ≤ tee xx.txt but there may be better debugging utilities these days.