From mboxrd@z Thu Jan 1 00:00:00 1970 From: kayparker@mailite.com (=?utf-8?Q?Kay=20Parker=20=09=20?=) Date: Sun, 08 Jan 2017 13:54:52 -0800 Subject: [TUHS] Unix stories, Stephen Bourne and IF-FI in C code In-Reply-To: <22ec379e-4985-2ab5-9fa5-f932fa4de653@retro11.de> References: <22ec379e-4985-2ab5-9fa5-f932fa4de653@retro11.de> Message-ID: <1483912492.3148012.841178505.57CBD486@webmail.messagingengine.com> Thanks Walter! I already read about Algol like C in the Bourne area and now know what it means. I also read elsewhere that it was a act of freedom when the Bell Lab boys freed finally themselves from the Bourne 'Algol' influence. On Sun, Jan 8, 2017, at 12:37 PM, Walter F.J. Mueller wrote: > There was thread 'Unix stories' were Stephen Bourne played role. > > Here another story about Stephen Bourne. He worked first on Algol 68, > than joined the Unix team at Bell labs and wrote sh and adb. It's well > known that the if-fi and case-esac notation from Algol came to shell > syntax this way. > > Maybe less know is that Bourne tried as hard as he could to make the > C code of sh and adb look like Algol, with the help of preprocessor > macros. I stumbled across this when I looked into the 2.11BSD code > base some time ago. Look at > > http://www.retro11.de/ouxr/211bsd/usr/src/bin/sh/main.c.html > http://www.retro11.de/ouxr/211bsd/usr/src/bin/adb/main.c.html > > to enjoy C with an Algol-look. The definitions are in > > http://www.retro11.de/ouxr/211bsd/usr/src/bin/sh/mac.h.html > http://www.retro11.de/ouxr/211bsd/usr/src/bin/adb/defs.h.html > > > Cheers, Walter -- Kay Parker kayparker at mailite.com -- http://www.fastmail.com - Send your email first class