logoalt Hacker News

hnlmorg • today at 4:47 PM • 1 reply • view on HN

That’s because there isn’t a universal PATH variable.

Env vars are not global. They just have that illusion because a fork() by default will pass your running env vars to the child. Thus trickling that value down.


Replies

the__alchemist • today at 5:20 PM

Exactly. It's annoying if I'm just trying to launch an application I installed by typing its name, which is IMO what PATH is for.

➕ show 2 replies