[TUHS] sh: cmd | >file

Richard Salz rich.salz at gmail.com
Tue Jan 7 01:42:49 AEST 2020


On Sun, Jan 5, 2020 at 10:42 PM Brian Walden <tuhs at cuzuco.com> wrote:

> not the kernel. This had traditionally been done after the exec() failed
> then shell ould run "sh argv[0]", but with two shells this was now a
> problem.
>

It seems the kernel did that; http://man.cat-v.org/unix_7th/2/exec since
argv[-1] was altered.

I read somewhere, can't recall where, that Ken Thompson suggested "#!"
being added to the kernel during his sabbatical there.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://minnie.tuhs.org/pipermail/tuhs/attachments/20200106/d4d5b361/attachment.html>


More information about the TUHS mailing list