Both the article's improved pipeline and Doug McIlroy's original have a bug. I've just written about it on +Ade Oshineye's post about the original article. https://plus.google.com/105037104815911535953/posts/KuXczyiw...
(Btw, the Python version did not have the bug, since the split method of Python strings already ignores initial whitespace.)