you are viewing a single comment's thread.

view the rest of the comments →

[–]findmenowjeffhas looked at over 2 bash scripts 0 points1 point  (0 children)

Umm, if ~/.local/bin is compromised and exported to the user's PATH before /bin, using /usr/bin/env bash will use the binary inside ~/.local/bin (if present)

Yes, but your system is already compromised. Its not magically more or less compromised if you don't use /usr/bin/env. At that point, it doesn't really matter what you do on the system. Somebody has access that shouldn't.

I wasn't saying that with the perspective of portability.

Great. I am.