Note: this is a follow-up question to this answer.

I updated my PATH environment variable using Windows 7's Environment Variables dialogue.

However, it seems that the only way to get Cygwin to pull the updated PATH is to reboot my machine, which is obviously far from an ideal solution, and plain problematic for server users.

Is it possible to get Cygwin to see updated Windows environment variables without rebooting the machine?

  • which environment variables ? How do you updated them ? – matzeri Oct 27 '17 at 20:46
  • @matzeri The details are in the original question, but I changed the PATH system environment variable from within Windows 7 the usual way - by searching and opening "Edit the system environment variables" and clicking the "Environment variables" button. – Hashim Oct 27 '17 at 20:49

If you're updating Windows environment variables, you should be able to restart the Cygwin window and see the updated environment.

Alternatively, you can use Cygwin environment variables like:

export TEST_VARIABLE=value

Now the $TEST_VARIABLE will "value" you can confirm this by:


This should show you the above output.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.