Skip to content
Advertisement

Tag: setenv

C++ setenv resolve other variables

I am using c++ and setenv to set a variable like in this program below: The output I get is “TEST=$HOME/test”. However I want the output be like “TEST=/home/toboxos/test”. I found nothing using the linux manual. Is there any function resolving the environment variables or have I to do this by myself? Answer This substitution you’re expecting is a feature

Advertisement