← Back to context

Comment by dicytea

8 hours ago

$PATH is not tied to any specific shell. And what you're describing is a shell, so I'm not sure how it's any different from existing solutions.

It is - this is why adding something to the Path is tricky on Linux. Or I should say, there is a mismatch between the common instruction of how to do it (export) vs what you have to do (e.g. edit bash config)

  • 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.