4 ms·
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. http
by ralph 14y ago
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/KuXczyiwqep https://plus.google.com/105037104815911535953/posts/KuXczyiw...
- pdonis 14y agoGood catch! I've implemented your suggested fix of adding a sed '/^$/d' at the beginning of McIlroy's pipeline. The github code is updated, along with an updated test file and expected output. (Btw, the Python version did not have the bug, since the split method of Python strings already ignores initial whitespace.)