automake
[Top][All Lists]
Advanced

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

Re: sh location


From: Ralf Wildenhues
Subject: Re: sh location
Date: Fri, 18 Jul 2008 20:39:08 +0200
User-agent: Mutt/1.5.18 (2008-05-17)

Hello Christian,

* Christian Csar wrote on Thu, Jul 17, 2008 at 10:05:00PM CEST:
> So in writing test scripts, I happened to read the man page for sh, and
> in APPLICATION USAGE it mentions that
> "Applications should note that the standard PATH to the shell cannot be
> assumed to be either /bin/sh or /usr/bin/sh, and should be determined by
> interrogation of the PATH returned by getconf PATH , ensuring that the
> returned pathname is an absolute pathname and not a shell built-in."
> 
> Does automake provide a way to deal with this, or do modern systems
> primarily use only /bin/sh. This seems as if it could also be a problem
> with python or perl which might have more variable locations. I did not
> find anything about this in the manual, but I could have missed it.

The configure startup code provided by Autoconf searches for a better
shell if the one running is found to be not good enough.  The choice may
be overridden with CONFIG_SHELL, like this:
  CONFIG_SHELL=/bin/foosh /bin/foosh ./configure [OPTIONS...]

as documented in the INSTALL file.

Otherwise, the shell search will typically try bash or ksh, or use
/usr/xpg4/bin/sh.  The result of the shell search will be available in
the $SHELL variable and the @SHELL@ substitute.

Hope that helps.

Cheers,
Ralf




reply via email to

[Prev in Thread] Current Thread [Next in Thread]