Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

View windows environment variables in Cygwin

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!

like image 253
Dannalieth Avatar asked Jul 06 '12 16:07

Dannalieth


1 Answers

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.

like image 166
0xC0000022L Avatar answered Oct 21 '22 14:10

0xC0000022L