This time, we see the list of available versions and the chosen one in the current ApVSys environment.
We can see the different tools/versions containing a command "vsim" and the chosen one in the current ApVSys environment.
Let's modify the APVSYS_TOOLSPEC_FILES variable as follow:
The content of these file can be seen with the command
Let's note that the gcc version is specified in both files with a different version
Checks the version currently selected in your
It means that the version of the command g++ is the version registered in gcc-3.0.2 and this version is taken into account because this is the FIRST ONE mathing in the toolspec.
It means that the version of the command vsim is the version registered in modelsim-5.5f and this version is taken into account because the line "modelsim/default" is present in the /tmp/my_toolspec file. Note that this line is not mandatory if the tool (modelsim in this case) does not have command registered also for another tool (If you don't understand, don't be afraid, wait the other examples).
Let's check if it works
Ok, life is beautiful, everything is working as expexted!