On Mon, Mar 23, 2009 at 11:09 AM, Lisandro Dalcin <span dir="ltr"><<a href="mailto:dalcinl@gmail.com">dalcinl@gmail.com</a>></span> wrote:<br><div class="gmail_quote"><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
On Mon, Mar 23, 2009 at 11:48 AM, Matthew Knepley <<a href="mailto:knepley@gmail.com">knepley@gmail.com</a>> wrote:<br>
><br>
>><br>
>> 2) BuildSystem assumes that the shell is '/bin/sh'... I would need it<br>
>> to find "sh" in the $PATH instead...<br>
><br>
> Where is this assumption? In BuildSystem/config/programs.py we explicitly<br>
> search for 'sh', so it is available, we just need to use it everywhere.<br>
><br>
<br>
Check this file:<br>
<br>
config/PETSc/utilities/petscdir.py<br>
<br>
See the lines<br>
<br>
      host   = config.base.Configure.executeShellCommand(self.shell+'<br>
'+configGuess, log = self.framework.log)[0]<br>
      output = config.base.Configure.executeShellCommand(self.shell+'<br>
'+configSub+' '+host, log = self.framework.log)[0]<br>
<br>
then see that 'self.shell' is naively defined to '/bin/sh' in<br>
Script.__init__() in the file below<br>
<br>
config/BuildSystem/script.py<br><div><div class="h5"></div></div></blockquote><div><br>Fixed. I left script the way it is, but fixed the configure stuff. I do not want to<br>entangle config stuff in there. Let me know if this stuff works.<br>
<br>  Thanks,<br><br>     Matt<br> </div><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><div><div class="h5">
--<br>
Lisandro Dalcín<br>
---------------<br>
Centro Internacional de Métodos Computacionales en Ingeniería (CIMEC)<br>
Instituto de Desarrollo Tecnológico para la Industria Química (INTEC)<br>
Consejo Nacional de Investigaciones Científicas y Técnicas (CONICET)<br>
PTLC - Güemes 3450, (3000) Santa Fe, Argentina<br>
Tel/Fax: +54-(0)342-451.1594<br>
</div></div></blockquote></div><br><br clear="all"><br>-- <br>What most experimenters take for granted before they begin their experiments is infinitely more interesting than any results to which their experiments lead.<br>
-- Norbert Wiener<br>