$ ./mpi.ksh LD_LIBRARY_PATH=/usr/lib64/openmpi/lib/ PATH=/sbin:/usr/lib64/qt-3.3/bin:/usr/local/bin:/usr/bin:/bin:/usr/local/sbin:/usr/sbin:/lib64/openmpi/bin/
Afterwards: $ print $PATH /sbin:/usr/lib64/qt-3.3/bin:/usr/local/bin:/usr/bin:/bin:/usr/local/sbin:/usr/sbin PATH is still unchanged - after returning from "./mpi.ksh". I'm now using Fedora 17. ---John On Sat, Apr 13, 2013 at 8:15 PM, Thorsten Glaser <[email protected]> wrote: > John Chludzinski dixit: > >>After I "source mpi.ksk", PATH is unchanged but LD_LIBRARY_PATH is there: > [ā¦] >>Why does PATH loose its change? > > Use dot (ā.ā) not source, which is a bashism and is implemented > in mksh by means of PATH manipulation and only for compatibility. > > Dot is POSIX: . ./mpi.ksk > > bye, > //mirabilos > -- > Sorry, Iām annoyed today and you came by as an Arch user. These are the > perfect victims for any crime against humanity, like systemd, feminism > or social democracy. > -- Christoph Lohmann on [email protected]
