2 ms·
The behavior your are likely thinking of (execvp on a file without a shebang) is implemented in libc.
by saagarjha 6y ago
The behavior your are likely thinking of (execvp on a file without a shebang) is implemented in libc.
- fao_ 6y agoNo. As someone else mentioned, the kernel hardcodes /bin/sh as a last resort: https://github.com/torvalds/linux/blob/dcc0b49040c70ad827a7f3d58a21b01fdb14e749/init/main.c#L1476 https://github.com/torvalds/linux/blob/dcc0b49040c70ad827a7f...