zsh-completion: fix for #4318 (#4394)
authorllua <llua@users.noreply.github.com>
Mon, 17 Oct 2016 12:35:26 +0000 (08:35 -0400)
committerLennart Poettering <lennart@poettering.net>
Mon, 17 Oct 2016 12:35:26 +0000 (14:35 +0200)
commit6c9414a700a040be1d3160bd2336baac58a1da3e
treebdd7dbfe6fe9926248ef1e28736bdde127552eec
parentcdc31c592af3d5d9b1977b81e45571de12d5df5b
zsh-completion: fix for #4318 (#4394)

Escape unit names for the eval call in _call_program

The value of the Id property is transformed back into a unit name
usable by systemctl.
system-systemd\x5cx2dcryptsetup.slice -> system-systemd\x2dcryptsetup.slice

Also filter units by property via parameter expansion, not a for loop
shell-completion/zsh/_systemctl.in