Earlier quoted context omitted.
Sounds like what you're looking for is the original Bash source code, circa 1977, for example [1]: LOCAL STRING copyto(endch) REG CHAR endch; { REG CHAR c; WHILE (c=getch(endch))!=endch ANDF c DO pushstak(c|quote) OD zerostak(); IF c!=endch THEN error(badsub) FI } Applicable macros if you want to give your code that classic ALGOL 68 smell in [2]. [1] http://minnie.tuhs.org/cgi-bin/utree.pl?file=V7/usr/src/cmd/... [2]…
"An original idea. That can't be too hard. The library must be full of them."
Similar efforts (the linguist at DRI who did a #define of totally new control structures . . . in Russian, though he wasn't Russian, it was just a lark) are why we can't have nice things.