Auteur: Phil Pennock Date: À: Jeremy Harris CC: exim-dev Sujet: Re: [exim-dev] build scripts and xpg4
On 2013-11-20 at 19:02 +0000, Jeremy Harris wrote: > On 17/11/13 06:45, Phil Pennock wrote:
> > I think that the best bet might be to look for the existence of
> > /bin/bash and exec that by preference to /usr/xpg4/bin/sh.
> >
> > Anyone object to that approach?
>
> Seems operational for me. I just did the obvious
> if bash elif xpg4 fi.
That will leave you without the fixed tr(1) first in the $PATH.
Although it looks like that's less relevant with Tony's change to use
the redundant square brackets.
I've applied a change which tries to fix $PATH and other environment
first, and then does a look for a better choice of shell. Dash first
(non-interactive, after all) then bash.