[TUHS] Shell control through external commands
dave at horsfall.org
Sun Sep 11 14:07:48 AEST 2016
On Sat, 10 Sep 2016, arnold at skeeve.com wrote:
> I think that the way the shell "recognized" scripts was by having exec
> fail, otherwise how would it know? I think we'll have to go grubbing in
> the source archives to be sure.
Correct; if the exec failed then the invoking shell assumed that it was a
shell script, and spawned a shell to run it.
With the #! hack, it had to be followed by the full path name (white space
optional) and the kernel ran it directly.
Dave Horsfall DTM (VK2KFU) "Those who don't understand security will suffer."
More information about the TUHS