Open MPI logo

Open MPI User's Mailing List Archives

  |   Home   |   Support   |   FAQ   |   all Open MPI User's mailing list

From: Glenn Morris (gmorris_at_[hidden])
Date: 2006-02-02 04:20:12


Jeff Squyres wrote:

> Excellent point. Hardly elegant, but definitely no portability
> issues there -- so I like it better.

Last word on this trivial issue I promise - if you don't want two
copies added to L_L_P, you could use a temporary variable, e.g.:

tcsh -c 'if ( "$?LD_LIBRARY_PATH" == 1 ) set foo ;
  if ( "$?LD_LIBRARY_PATH" == 0 ) setenv LD_LIBRARY_PATH blah ;
  if ( "$?foo" == 1 ) setenv LD_LIBRARY_PATH blah:$LD_LIBRARY_PATH ;
  unset foo'