Hacker News new | ask | show | jobs
by jibal 210 days ago
There's no security issue here. Certainly the OP hasn't explained why there is one.
1 comments

There could be. Say you have '#!sh', someone could have put a broken 'sh' somewhere, that could be the first one the '#!' sees.
No, this is about relative paths, not searching $PATH ..., which it doesn't do. (That happens when people do '#!/usr/bin/env sh' ... the security issues with that are a separate discussion.)