Hacker News new | ask | show | jobs
by paxswill 1952 days ago
In my experience, CDPATH is a great way to lose hours chasing down errors throughout your scripts.
1 comments

"CDPATH=<str>" without the export will work as you'd want, and won't pollute the environment for subshells and scripts. It is unlikely you really want to export anything listed in the shell variables section of the man page, but yeah everybody does :/

[This message brought to you by https://news.ycombinator.com/item?id=22978770]

TIL, thanks :)