Viewing Windows Environment Variables in Cygwin

Is there a way to sync Windows environment variables with Cygwin?

For example, in CMD echo %inetroot% , the path to the project assembly is given. Is it possible to pass this env variable to Cygwin so that echo $inetroot provides the same path?

Thanks!

+7
source share
1 answer

Use the env program so that ... or echo "$inetroot" . I think variable names are case sensitive though (in Bash and therefore MinGW).

These variables are 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 correct uppercase version of the variable name.

+4
source

All Articles