martine/ninja — pull request #885 by frasercrmck (2014-12-20 00:36:32+00:00)
Title: zsh-completion: remove use of 'head' with negative offset

Some systems - like OSX - don't come with a version of head that
supports a negative value for the -n flag. Such systems get a message
such as this when tab-completing ninja's -d flag:

ninja -dhead: illegal line count -- -1

Using sed instead should be more universally supported.