News for hackers. Stuff that matters.
Re:Ask HN: How can I get better at bash? by yebyen on Monday June 26, 2017 @04:08PM (#14639916)
Why even expect binaries to be in the same place on different systems with different default PATHs? Know how many times I've seen problems caused by (#!/usr/bin/bash|#!/bin/bash) pointing to the wrong place?

After reading this thread though, I'm not sure I want to suggest people write `#!/usr/bin/env bash` either... since that depends on the path being correctly set, and bash being in the path!

Re:Ask HN: How can I get better at bash? by mobilethrow on Monday June 26, 2017 @08:51PM (#14641713)
I've started to dislike /usr/bin/env too. At least use -i. Otherwise you're one PATH manipulation away from executing a malicious program as your intended shell.