13
13
* Copyright (c) 2007-2012 Los Alamos National Security, LLC. All rights
14
14
* reserved.
15
15
* Copyright (c) 2008-2009 Sun Microsystems, Inc. All rights reserved.
16
- * Copyright (c) 2011-2017 IBM Corporation. All rights reserved.
16
+ * Copyright (c) 2011-2019 IBM Corporation. All rights reserved.
17
17
* Copyright (c) 2014-2019 Intel, Inc. All rights reserved.
18
18
* Copyright (c) 2015-2018 Research Organization for Information Science
19
19
* and Technology (RIST). All rights reserved.
@@ -497,10 +497,13 @@ static int setup_launch(int *argcptr, char ***argvptr,
497
497
* we have to insert the orted_prefix in the right place
498
498
*/
499
499
opal_asprintf (& final_cmd ,
500
- "%s%s%s PATH=%s%s$PATH ; export PATH ; "
500
+ "%s%s%s%s%s%s PATH=%s%s$PATH ; export PATH ; "
501
501
"LD_LIBRARY_PATH=%s%s$LD_LIBRARY_PATH ; export LD_LIBRARY_PATH ; "
502
502
"DYLD_LIBRARY_PATH=%s%s$DYLD_LIBRARY_PATH ; export DYLD_LIBRARY_PATH ; "
503
503
"%s %s" ,
504
+ (NULL != mca_plm_rsh_component .chdir ? "cd " : " " ),
505
+ (NULL != mca_plm_rsh_component .chdir ? mca_plm_rsh_component .chdir : " " ),
506
+ (NULL != mca_plm_rsh_component .chdir ? " ; " : " " ),
504
507
(opal_prefix != NULL ? "OPAL_PREFIX=" : " " ),
505
508
(opal_prefix != NULL ? opal_prefix : " " ),
506
509
(opal_prefix != NULL ? " ; export OPAL_PREFIX;" : " " ),
@@ -527,7 +530,7 @@ static int setup_launch(int *argcptr, char ***argvptr,
527
530
* we have to insert the orted_prefix in the right place
528
531
*/
529
532
opal_asprintf (& final_cmd ,
530
- "%s%s%s set path = ( %s $path ) ; "
533
+ "%s%s%s%s%s%s set path = ( %s $path ) ; "
531
534
"if ( $?LD_LIBRARY_PATH == 1 ) "
532
535
"set OMPI_have_llp ; "
533
536
"if ( $?LD_LIBRARY_PATH == 0 ) "
@@ -541,6 +544,9 @@ static int setup_launch(int *argcptr, char ***argvptr,
541
544
"if ( $?OMPI_have_dllp == 1 ) "
542
545
"setenv DYLD_LIBRARY_PATH %s%s$DYLD_LIBRARY_PATH ; "
543
546
"%s %s" ,
547
+ (NULL != mca_plm_rsh_component .chdir ? "cd " : " " ),
548
+ (NULL != mca_plm_rsh_component .chdir ? mca_plm_rsh_component .chdir : " " ),
549
+ (NULL != mca_plm_rsh_component .chdir ? " ; " : " " ),
544
550
(opal_prefix != NULL ? "setenv OPAL_PREFIX " : " " ),
545
551
(opal_prefix != NULL ? opal_prefix : " " ),
546
552
(opal_prefix != NULL ? " ;" : " " ),
0 commit comments