D-Programming-Language/dmd — pull request #1278 by monarchdodra (2012-11-12 10:59:02+00:00)
Title: Small split(string, string) fix in d_do_test.d

As mentioned in https://github.com/D-Programming-Language/phobos/pull/934#issuecomment-10282813

The *correct* behavior for `splitter(string, string)` is to create empty tokens when input is empty (or when there are trailing separators or whatnot).

My fix was creating a problem here, where a new empty token was being (correctly) generated:
http://d.puremagic.com/test-results/pull.ghtml?runid=368596&logid=7

`../src/dmd -m32 -Icompilable -odtest_results/compilable -oftest_results/compilable/99bottles_0.o -c compilable/99bottles.d compilable/`
(notice the trailing `compilable/`)

Anyways, the simple fix is to just use the simple string-dedicated `split(string)`, which merges runs of white, and does not produce empty tokens.