3 ms·
> A couple of people naturally pointed out that a shell script that did the same thing was much shorter than 45 bytes, to which my response was always that a sh
by AshamedCaptain 5y ago
> A couple of people naturally pointed out that a shell script that did the same thing was much shorter than 45 bytes, to which my response was always that a shell script is not an executable, and if you want to consider scripts then you need to include the size of the interpreter binary along with the script size.
By the same reasoning, this article is cheating, since all you are doing is putting your interpreter binary in the kernel. So you have to add the size of your kernel module at least ;P
Not hard to write a "runcom" or the like loader entirely in userspace, btw.
- teddyh 5y ago> > a shell script is not an executable By that measure, then a dynamically linked ELF binary is not an “executable” either, since it uses the dynamic linker ld.so to load itself.
- AshamedCaptain 5y agoYeah, but the author does not use a dynamically linked executable.
- teddyh 5y agoMy point is that by any reasonable definition, a shell script is an executable file, just as much as an ELF binary is. It might not be a binary executable, but still an executable.