On Mon, Mar 23, 2009 at 11:48 AM, Matthew Knepley <knepley at gmail.com> wrote: > >> >> 2) BuildSystem assumes that the shell is '/bin/sh'... I would need it >> to find "sh" in the $PATH instead... > > Where is this assumption? In BuildSystem/config/programs.py we explicitly > search for 'sh', so it is available, we just need to use it everywhere. >
Check this file: config/PETSc/utilities/petscdir.py See the lines host = config.base.Configure.executeShellCommand(self.shell+' '+configGuess, log = self.framework.log)[0] output = config.base.Configure.executeShellCommand(self.shell+' '+configSub+' '+host, log = self.framework.log)[0] then see that 'self.shell' is naively defined to '/bin/sh' in Script.__init__() in the file below config/BuildSystem/script.py -- Lisandro Dalc?n --------------- Centro Internacional de M?todos Computacionales en Ingenier?a (CIMEC) Instituto de Desarrollo Tecnol?gico para la Industria Qu?mica (INTEC) Consejo Nacional de Investigaciones Cient?ficas y T?cnicas (CONICET) PTLC - G?emes 3450, (3000) Santa Fe, Argentina Tel/Fax: +54-(0)342-451.1594