The Bourne sh is significant for a few reasons. Primarily, its GNU descendant is now installed on billions of devices.
Perhaps of more interest: Bourne's sh source code heavily abuses C macros to look and feel like ALGOL-68. This is made more significant because it came before C was standardized: it took real knowledge to abuse that much.
While this is C that compiled just fine for the day, and might compile mostly without errors for a compiler with a K&R compatibility mode, it's absolutely wild, and is written compensating for some of K&R's faults (see how it handles true v. false).
I recommend mac.h as a file of particular interest:
https://www.tuhs.org/cgi-bin/utree.pl?file=V7/usr/src/cmd/sh...
Bonus points to anyone who understands what these three lines are doing within it:
#define LOBYTE 0377
#define STRIP 0177
#define QUOTE 0200
Also of interest:This was specifically the reason that the International Obfuscated C Code Contest was created, started just minutes after seeing Bourne's sh for the first time (I'm sorry for formatting this as code block, but the formatting breaks otherwise):
Q: How did the IOCCC get started?
A: One day (23 March 1984 to be exact), back Larry
Bassel and I (Landon Curt Noll) were working for National
Semiconductor's Genix porting group, we were both in our
offices trying to fix some very broken code. Larry had been
trying to fix a bug in the classic Bourne shell (C code
#defined to death to sort of look like Algol) and I had been
working on the finger program from early BSD (a bug ridden
finger implementation to be sure). We happened to both
wander (at the same time) out to the hallway in Building 7C
to clear our heads.
We began to compare notes: ''You won't believe the code
I am trying to fix''. And: ''Well you cannot imagine the
brain damage level of the code I'm trying to fix''. As well
as: ''It more than bad code, the author really had to try to
make it this bad!''.
After a few minutes we wandered back into my office
where I posted a flame to net.lang.c inviting people to try
and out obfuscate the UN*X source code we had just been
working on.