Re: Portability of git shell scripts?
flat view
From: Torsten Bögershausen <hidden>
Date: 2016-06-16 02:19:10
On 04.05.16 20:17, Armin Kunaschik wrote:
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.