logoalt Hacker News

incognito124last Tuesday at 12:31 PM1 replyview on HN

To quote the blog in question:

> How true this is, is a topic I dare not enter.


Replies

loosescrewslast Tuesday at 7:05 PM

The blog says that in regard to finding bash with env. My reading is that it does not make the same claim regarding finding go with env. bash is commonly found at /bin/bash (or a symlink there exists) as it is widely used in scripts and being available at that path is a well known requirement for compatibility. Go does not so much have a conical path and I have personally installed it at a variety of paths over the years (with the majority working with env). While I agree with the author of the blog that using env to find bash may or may not improve compatibility, I also agree with the parent comment that using env to find go probably does improve compatibility.