News for hackers. Stuff that matters.
Re:Ask HN: How can I get better at bash? by tyingq on Monday June 26, 2017 @04:11PM (#14639933)
A PATH, though, is global.

Situations exist where you need more granularity.

There's also things like "watch" and "at" you might use in a shell script. They don't inherit the parent's environment, so setting PATH doesn't help.

You're correct in that "full paths" isn't a definitive answer though. I suppose the more generic advice to not depend on your environment to have it right is better.

There are no comments on this comment yet.