Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

You could always fixup all of your scripts so they point to the correct point in PATH. this also has the benefit of notifying you if a program doesn't exist. Do note that env is unportable (freebsd has -P I think), which makes parsing it a PITA, identifying where the program actually is, is slightly challenging. If you ask me its better to throw the program to sh and let it eval to whatever. sh is the true portable launcher.

I wrote [0] in lua a while back (mind the comments), didn't destroy anything I think, I wrote [1] just now in gawk, so not as recommended.

[0]: https://termbin.com/ijsu

[1]: https://termbin.com/rx0e

FWIW the correct solution, is the plan9 one, just union mount/bind all paths to /bin.



Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: