On 2015-02-16 08:49-0000 Arjen Markus wrote:
> It is even weirder: I started the MSYS shell and so I would have expected the path to be set up correctly for that environment. So, "which make" reported "/bin/make". If I run the command "make", I do indeed get the intended make version and "make -version" gives me something akin to what you reported. > However, if I move to the Plplot build directory and run "make", I seem to have fallen out of this environment and the MicroSoft version pops up. Even with the command "/bin/make"! That is indeed bizarre behaviour. It sounds like Microsoft software is trying to "help" you by changing your PATH variable depending on what directory you are in. For example, that software may automatically put whatever is the current directory on your PATH. To avoid all such complications and to always have reproducible behaviour, I suggest you do what I do which is to run the MSYS version of bash.exe by typing its full pathname (so you will get the version no matter what the PATH variable is). Then from within bash set all environment variables you need including PATH by the appropriate export VAR="whatever" basic shell syntax provided by bash.exe. And once you have settled on what environment variables to set, you can store all the required export commands in a permanent file and source that file each time you start up bash to establish the exact environment variables you need in a reproducible way. Furthermore, after sourcing that file, those bash environment variables should remain set to the same values regardless of what directory you move to so long as you don't type the exit comand to exit from the bash.exe shell. Alan __________________________ Alan W. Irwin Astronomical research affiliation with Department of Physics and Astronomy, University of Victoria (astrowww.phys.uvic.ca). Programming affiliations with the FreeEOS equation-of-state implementation for stellar interiors (freeeos.sf.net); the Time Ephemerides project (timeephem.sf.net); PLplot scientific plotting software package (plplot.sf.net); the libLASi project (unifont.org/lasi); the Loads of Linux Links project (loll.sf.net); and the Linux Brochure Project (lbproject.sf.net). __________________________ Linux-powered Science __________________________ ------------------------------------------------------------------------------ Download BIRT iHub F-Type - The Free Enterprise-Grade BIRT Server from Actuate! Instantly Supercharge Your Business Reports and Dashboards with Interactivity, Sharing, Native Excel Exports, App Integration & more Get technology previously reserved for billion-dollar corporations, FREE http://pubads.g.doubleclick.net/gampad/clk?id=190641631&iu=/4140/ostg.clktrk _______________________________________________ Plplot-devel mailing list Plplot-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/plplot-devel