3 ms·
I'm reminded of the guy who did #define BEGIN { #define END } and a whole bunch of other macro-larkey just to make C look more like Pascal. Only then
by bitwize 2y ago
I'm reminded of the guy who did
#define BEGIN {
#define END }
and a whole bunch of other macro-larkey just to make C look more like Pascal. Only then would he deign to code in it.
- epcoa 2y agohttps://en.wikipedia.org/wiki/Stephen_R._Bourne https://en.wikipedia.org/wiki/Stephen_R._Bourne https://www.tuhs.org/cgi-bin/utree.pl?file=V7/usr/src/cmd/sh https://www.tuhs.org/cgi-bin/utree.pl?file=V7/usr/src/cmd/sh
- sph 2y agoNow that's just silly. And I see the backwards keyword terminators (LOOP/POOL). I have wondered why we have case/esac, if/fi but while/done. I imagine the author himself figured that while/elihw would just be entirely ridiculous.
- pavlov 2y agoJust call it wyl/lyw. Pronunciation maintained, problem solved.
- giucal 2y ago> I have wondered why we have case/esac, if/fi but while/done. With the reverse-keyword convention we'd get "od", not "elihw", though. while ... for ... do do ... ... od od The 'od' utility already existed, apparently, so Bourne opted for "done". [edit: typos]
- epcoa 2y agoNo, there’s OD. DONE is different but no less perverse.