|
From: | Dimitrios Apostolou |
Subject: | Re: config.status and /bin/sh on Solaris |
Date: | Fri, 27 Jan 2017 20:11:56 +0100 (CET) |
User-agent: | Alpine 2.20 (DEB 67 2015-01-07) |
On Fri, 27 Jan 2017, Zack Weinberg wrote:
On Fri, Jan 27, 2017 at 1:36 PM, Dimitrios Apostolou <address@hidden> wrote:on my Solaris 10, for some unknown reason, /sometimes/ config.status is generated with "#! /bin/sh" shebang, instead of bash.You should figure out why *this* is happening and fix it. Solaris 10 /bin/sh is *extremely* old (behavior frozen circa 1992 - yes, seriously) and it is likely that the problem you've noticed is only the tip of the iceberg. config.status on Solaris 10 should be generated with #! /usr/xpg4/bin/sh and should also set the PATH to prioritize /usr/xpg4/bin over {/usr,}/bin.
Thanks for suggesting this. Indeed my PATH has /usr/xpg4/bin in front, but config.status is sometimes generated with /bin/bash, and some others with /bin/sh (investigating the conditions on that). I've never seen /usr/xpg4/bin/sh been chosen.
Where is the source for this shebang generation? Maybe I can make some sense out of it.
Dimitris
[Prev in Thread] | Current Thread | [Next in Thread] |