summaryrefslogtreecommitdiff
path: root/shell-completion/zsh
diff options
context:
space:
mode:
authorWieland Hoffmann <themineo@gmail.com>2015-01-17 02:10:42 +0100
committerMartin Pitt <martin.pitt@ubuntu.com>2015-01-21 10:59:40 +0100
commite37b56c7355a9b84ac1e1893ab828b19aa1dc217 (patch)
tree0e9d9d38f27eef4984cbaed709c810ef8748c807 /shell-completion/zsh
parenteb89bc1d25086a1b4117683697f35c1398a98c02 (diff)
zsh-completion: Do not interpret escape sequences in _filter_units_by_property
This makes all functions that rely on _filter_units_by_property() (like _systemctl_{stop,kill,try_restart}) work with unit names that contain backslash escaped sequences (like automount units with spaces that are escaped to "\x20").
Diffstat (limited to 'shell-completion/zsh')
-rw-r--r--shell-completion/zsh/_systemctl.in2
1 files changed, 1 insertions, 1 deletions
diff --git a/shell-completion/zsh/_systemctl.in b/shell-completion/zsh/_systemctl.in
index 3fa59faca1..7f2d5ac0fa 100644
--- a/shell-completion/zsh/_systemctl.in
+++ b/shell-completion/zsh/_systemctl.in
@@ -137,7 +137,7 @@ _filter_units_by_property() {
unit=${units[i]}
prop=${(f)"$(_call_program units "$service show --no-pager --property="$property" ${unit} 2>/dev/null")"}
if [[ "${prop}" = "$property=$value" ]]; then
- echo " ${unit}"
+ echo -E - " ${unit}"
fi
done
}