Is there a way to sync windows environment variables with Cygwin?
For example, in CMD echo %inetroot%
gives the path to a project build. Is it possible to transfer this env variable to Cygwin such that echo $inetroot
provides the same path?
Thanks!
Use the env
program to so that ... or echo "$inetroot"
. I think the variable names are case-sensitive, though (in Bash and thus MinGW).
Those variables are all available in MinGW from Windows (user profile and global). Again, use env
to list them or for example env|grep -i inetroot
to find the properly capitalized version of the variable name.