summaryrefslogtreecommitdiffstats
path: root/misc/zsh-completion
diff options
context:
space:
mode:
authorAllan Odgaard <git@abetarda.com>2014-04-15 07:23:47 (GMT)
committerAllan Odgaard <git@abetarda.com>2014-04-15 07:27:57 (GMT)
commit1f38478eb976d3c11db7885972664c0422317ea8 (patch)
treeebdf50937fbb514975848a44eb821343c87db18f /misc/zsh-completion
parent7603f0fbbe6395de8155c2d311e92ece8ba36dd6 (diff)
downloadNinja-1f38478eb976d3c11db7885972664c0422317ea8.zip
Ninja-1f38478eb976d3c11db7885972664c0422317ea8.tar.gz
Ninja-1f38478eb976d3c11db7885972664c0422317ea8.tar.bz2
Fix bash completion when using command options
By quoting the ‘line’ variable we are making it a single word, but ‘getopts’ wants each option as its own word. Previously bash completion would output an error for a line like: ‘ninja -vn targ‸’. In addition to removing the quotes (to enable word expansion) I also used it as a regular variable, as that is what it is (not an array).
Diffstat (limited to 'misc/zsh-completion')
0 files changed, 0 insertions, 0 deletions