Open MPI logo

Open MPI Development Mailing List Archives

  |   Home   |   Support   |   FAQ   |   all Development mailing list

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


FWIW, I filed https://svn.open-mpi.org/trac/ompi/ticket/2400 about this issue.

On May 3, 2010, at 9:04 AM, Jeff Squyres (jsquyres) wrote:

> 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://193.11.170.208:49530" )
>
> 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
> jsquyres_at_[hidden]
> For corporate legal information go to:
> http://www.cisco.com/web/about/doing_business/legal/cri/
>
>
> _______________________________________________
> devel mailing list
> devel_at_[hidden]
> http://www.open-mpi.org/mailman/listinfo.cgi/devel
>

-- 
Jeff Squyres
jsquyres_at_[hidden]
For corporate legal information go to:
http://www.cisco.com/web/about/doing_business/legal/cri/