[gmx-developers] GMXRC scripts palindromes PATH
Christoph Junghans
junghans at mpip-mainz.mpg.de
Wed Jan 5 22:39:57 CET 2011
> Slightly annoying and unexpected behavior. The csh version is ok,
> but both the zsh and the bash version does this. It also goes for
> the MANPATH and the LD_LIBRARY_PATH variables.
>
> Daniel
I fixed that a while ago:
<http://repo.or.cz/w/gromacs.git/commit/bf39f45a64fa5cd9551e83c4b23b35f1ac7d377b>
Cheers,
Christoph
>
>
> Here is a patch for GMXRC.bash:
>
> --- GMXRC.bash 2011-01-05 16:39:57.370898465 +0100
> +++ GMXRC_new.bash 2011-01-05 16:34:32.767682956 +0100
> @@ -8,7 +8,7 @@
> tmppath=""
> for i in `echo $LD_LIBRARY_PATH | sed "s/:/ /g"`; do
> if test "$i" != "$GMXLDLIB"; then
> - tmppath="${i}${tmppath:+:}${tmppath}"
> + tmppath="${tmppath}${tmppath:+:}${i}"
> fi
> done
> LD_LIBRARY_PATH=$tmppath
> @@ -17,7 +17,7 @@
> tmppath=""
> for i in `echo $PKG_CONFIG_PATH | sed "s/:/ /g"`; do
> if test "$i" != "$GMXLDLIB/pkgconfig"; then
> - tmppath="${i}${tmppath:+:}${tmppath}"
> + tmppath="${tmppath}${tmppath:+:}${i}"
> fi
> done
> PKG_CONFIG_PATH=$tmppath
> @@ -26,7 +26,7 @@
> tmppath=""
> for i in `echo $PATH | sed "s/:/ /g"`; do
> if test "$i" != "$GMXBIN"; then
> - tmppath="${i}${tmppath:+:}${tmppath}"
> + tmppath="${tmppath}${tmppath:+:}${i}"
> fi
> done
> PATH=$tmppath
> @@ -35,7 +35,7 @@
> tmppath=""
> for i in `echo $MANPATH | sed "s/:/ /g"`; do
> if test "$i" != "$GMXMAN"; then
> - tmppath="${i}${tmppath:+:}${tmppath}"
> + tmppath="${tmppath}${tmppath:+:}${i}"
> fi
> done
> MANPATH=$tmppath
>
> --
> gmx-developers mailing list
> gmx-developers at gromacs.org
> http://lists.gromacs.org/mailman/listinfo/gmx-developers
> Please don't post (un)subscribe requests to the list. Use the
> www interface or send it to gmx-developers-request at gromacs.org.
>
> --
> This email was Anti Virus checked by Astaro Security Gateway.
> http://www.astaro.com
>
----- Ende der Nachricht von larsson at xray.bmc.uu.se -----
--
Dr. Christoph Junghans
Max Planck Institute for Polymer Research
Theory Group
POBox 3148
D 55021 Mainz, Germany
Phone: +49 6131 379 335
Web: http://www.mpip-mainz.mpg.de/~junghans
----------------------------------------------------------------
This message was sent using IMP, the Internet Messaging Program.
More information about the gromacs.org_gmx-developers
mailing list