Open MPI logo

Open MPI Development Mailing List Archives

  |   Home   |   Support   |   FAQ   |  

This web mail archive is frozen.

This page is part of a frozen web archive of this mailing list.

You can still navigate around this archive, but know that no new mails have been added to it since July of 2016.

Click here to be taken to the new web archives of this list; it includes all the mails that are in this frozen archive plus all new mails that have been sent to the list since it was migrated to the new archives.

Subject: Re: [OMPI devel] bug with /bin/sh and /bin/ksh
From: Jeff Squyres (jsquyres_at_[hidden])
Date: 2010-05-03 09:04:31

On Apr 29, 2010, at 11:24 AM, Jonathan Vincent wrote:

> i.e. a simpler version such as
> sh -c '/usr/bin/env FOO=bar (echo hello)'
> ksh -c '/usr/bin/env FOO=bar (echo hello)'
> is not valid
> sh -c '/usr/bin/env FOO=bar echo hello'
> works.

Per your later mails, plm_rsh_module.c does this:

        tmp = opal_argv_split("( test ! -r ./.profile || . ./.profile;", ' ');

(and later adds the closing ")"). You reported the final line to be:

/usr/bin/env LD_LIBRARY_PATH=/pdc/vol/openmpi/1.4.1/intel/lib:/pdc/vol/icompilers/11.1/icc/lib/intel64:/pdc/vol/i-compilers/11.1/ifort/lib/intel64 ( test ! -r ./.profile || . ./.profile; /pdc/vol/openmpi/1.4.1/intel/bin/orted -mca ess env -mca orte_ess_jobid 284360704 -mca orte_ess_vpid 3 -mca orte_ess_num_procs 5 --hnp-uri "284360704.0;tcp://" )

What would the correct syntax be? With the || and ;, are the () really unnecessary? I would think that would group things wrong, but I'm a tcsh user, not an sh user....

Jeff Squyres
For corporate legal information go to: