Archive for November 16, 2011

Wednesday, November 16, 2011 [Tweets] [Favorites]

Arithmetic Expressions in Shell Scripts

Mark Dominus:

I had assumed that bc was a later development than expr, but it appeared in Unix version 6, while expr did not appear until version 7. So then I thought perhaps expr had been thrown in as a demonstration of yacc, but no, yacc was already present in version 5, and anyway, bc was written with yacc. So I no longer have any workable theory about who perpetrated expr, or why.