3 ms·
That's what /usr/bin/env is for: a standard path to reference interpreters. There is still the issue of the proper interpreter actually being installed, howeve
by dotancohen 2y ago
That's what /usr/bin/env is for: a standard path to reference interpreters.
There is still the issue of the proper interpreter actually being installed, however.
- flohofwoe 2y ago> There is still the issue of the proper interpreter actually being installed, however. Yeah, that's what I mean with "make it easy". The script header should announce requirements (like what language and language version it is written in, and the shell should be able to ensure those requirements before running the script - without ignoring security aspects of course). E.g. every script should be able to bootstrap itself, no matter what programming language is used (and that might even include compiled languages).
- poincaredisk 2y agoThis is already possible with #!/usr/bin/env nix-shell