by sph · 2y ago · 0 comments
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.
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]