Hacker News new | ask | show | jobs
by creativemonkeys 1691 days ago
Once I tried to use `which` in cross-platform scripts, all sorts of issues crept up.

The output and return result differ significantly between BSD, GNU and OSX, so you can't just run $(which python) and get a straightforward response back.

Granted, I didn't know about `command -v` so I'm not sure if it works better in practice.