[TUHS] Shell control through external commands

schoedel at kw.igs.net schoedel at kw.igs.net
Fri Jul 15 00:11:35 AEST 2016


On Thu, 14 Jul 2016 16:18:43 +0300, Diomidis Spinellis wrote
> I remember hearing that originally the Unix shell had control structures
> (e.g. if, while, case) implemented through external commands.  However,
>  I can't see this reflected in the source code.  The 7th Edition 
> Bourne shell has these commands built-in (usr/src/cmd/sh/cmd.c), while 
> the 6th Edition (usr/source/s2/sh.c) seems to lack them completely.

http://www.tuhs.org/cgi-bin/utree.pl?file=V6/usr/source/s1/if.c
http://www.tuhs.org/cgi-bin/utree.pl?file=V6/usr/source/s1/goto.c

-- 
Kevin Schoedel <schoedel at kw.igs.net> VA3TCS




More information about the TUHS mailing list