3 ms·
I've worked on systems where env was installed as /bin/env and not as /usr/bin/env . (I think it was SunOS 4.) For that matter, under Termux on Android it's /d
by _kst_ 8y ago
I've worked on systems where env was installed as /bin/env and not as /usr/bin/env . (I think it was SunOS 4.)
For that matter, under Termux on Android it's /data/data/com.termux/files/usr/bin/env (but termux has a hack to make normal shebangs work).
- jwilk 8y agohttps://www.in-ulm.de/~mascheck/various/shebang/#env https://www.in-ulm.de/~mascheck/various/shebang/#env mentions other OSes that have only /bin/env, although admittedly they are all quite old.
- dredmorbius 8y agoTermux rewrites scripts via termux-fix-shebang.
- rkeene2 8y agoIt now also does rewriting on the fly for certain shebang lines, as part of its C library, so unmodified scripts can run.
- dredmorbius 8y agoI didn't know that, thanks.
- rkeene2 8y agoNo problem. I wrote it because I version control my scripts and didn't want to fork them for running them on my laptop (Chromebook with Termux).