4 ms·
On Unixes it doesn't matter if /usr/bin/cmp is a script or a compiled binary. If the script has correct shebang, kernel takes care of executing it.
by pzmarzly 2y ago
On Unixes it doesn't matter if /usr/bin/cmp is a script or a compiled binary. If the script has correct shebang, kernel takes care of executing it.
- deleted 2y ago[deleted]
- oguz-ismail 2y agoShebangs are not part of the UNIX specification. What happens if an executable starts with `#!' is implementation-defined.
- immibis 2y agois being able to run busybox part of that specification? Linux ELF files are tagged for Linux OS, not generic Unix OS.
- blenderob 2y ago> is being able to run busybox part of that specification? It's the other way round. This is like asking if running RHEL is part of the specification? Obviously not. But RHEL provides an environment that is quite close to the specification. So is running a busybox part of the specification? Obviously not. But Busybox provides an environment that is close to the speficiation.
- immibis 2y agoThen it would be busybox's responsibility to make busybox work.
- account42 2y agoUNIX/POSIX doesn't specify an executable format at all