{"thread":{"id":"43969","subject":"git-completion.zsh does not escape spaces in filenames","startedAt":"2016-08-31T14:32:06Z","lastAt":"2016-08-31T14:32:06Z","messageCount":1,"participants":["Sebastian Boehm"],"isPatch":false,"patchVersion":null,"patchTotal":null},"messages":[{"id":"300692","messageId":"CAH4qiVc-KZCjcnxfxicO85ocjFhpXpobfZLvcVniLkz5EJoW4A@mail.gmail.com","threadId":"43969","inReplyTo":null,"subject":"git-completion.zsh does not escape spaces in filenames","fromName":"Sebastian Boehm","fromEmail":"sebastian@sometimesfood.org","sentAt":"2016-08-31T14:31:59Z","receivedAt":"2016-08-31T14:32:06Z","isPatch":false,"sender":{"key":"sebastian@sometimesfood.org","avatar":null},"body":"Hi,\n\ngit-completion.zsh does not seem to properly escape spaces in filenames.\n\nMy git version: 2.9.2\nMy zsh version: 5.0.8\n\nExpected behaviour: When completing filenames that contain spaces, for\nexample \"foo bar\", I would expect the git completion to complete \"git\nadd foo<TAB>\" to \"git add foo\\ bar\".\n\nActual behaviour:\n\ntouch \"foo bar\"\ngit add foo<TAB>\n\nresults in:\ngit add foo bar\n\nI am not a zsh expert, but apparently the usage of \"compadd -Q\" in\ncontrib/complete/git-completion.zsh prevents zsh from escaping spaces.\n\nIs this behaviour intentional, or is this a bug?\n\nBest,\nSebastian\n"}]}