Re: config.status and /bin/sh on Solaris

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Fri, 27 Jan 2017, Zack Weinberg wrote:

On Fri, Jan 27, 2017 at 1:36 PM, Dimitrios Apostolou <jimis@xxxxxxx> 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

_______________________________________________
Autoconf mailing list
Autoconf@xxxxxxx
https://lists.gnu.org/mailman/listinfo/autoconf



[Index of Archives]     [GCC Help]     [Kernel Discussion]     [RPM Discussion]     [Red Hat Development]     [Yosemite News]     [Linux USB]     [Samba]

  Powered by Linux