I have a bash script that executes the command
scl enable devtoolset-8 'echo -e "%__ld $(which ld)\n%__nm $(which nm)\n%__objcopy $(which objcopy)\n%__objdump $(which objdump)\n%__strip $(which strip)"'
After completing the assembly, I need to "turn off" gcc-8.
How can I do this by means of bash?
You don't need to turn anything "off" after the above command, all that it does is prints paths of the main devtoolset executables, e.g.
When you run a most used
scl enable devtoolset-8 bash
command, it is invokes a new bash instance where you have an additional path in your$PATH
enviroment variable making all the development tools now run from the new location:All you need to "turn off" the devtoolset is to exit this bash instance: