Y
Hacker News
new
|
ask
|
show
|
jobs
by
jmclnx
210 days ago
There could be. Say you have '#!sh', someone could have put a broken 'sh' somewhere, that could be the first one the '#!' sees.
1 comments
jibal
209 days ago
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.)
link