Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

2
  • This wasn't posted earlier because it isn't what the question asks: the question asks how to get the changed PATH after exit from make. Also, this could be done in a much simpler way: put export PATH=… on the do_something: line, you don't need eval. Commented Aug 22, 2017 at 16:20
  • The PATH isn't being "reset", it was never changed in the parent process, only in the process make runs in, so the new PATH is only available in the make process and it's children. For somewhat obvious reasons a child process can not modify its parents environment Commented Aug 12, 2020 at 13:36