diff options
author | Wieland Hoffmann <themineo@gmail.com> | 2015-01-17 02:10:42 +0100 |
---|---|---|
committer | Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> | 2015-01-22 10:49:20 -0500 |
commit | ca6494000fc1f396853baeeaaf880f8bf9b7d48f (patch) | |
tree | 9f7f26bbe37b34a5bbb1fb124080d13f3201b5df | |
parent | 26ba2d214376ba0ebcf8b1b0dedca2fb5fb5733a (diff) | |
download | systemd-ca6494000fc1f396853baeeaaf880f8bf9b7d48f.tar.gz |
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").
(cherry picked from commit e37b56c7355a9b84ac1e1893ab828b19aa1dc217)
-rw-r--r-- | shell-completion/zsh/_systemctl.in | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/shell-completion/zsh/_systemctl.in b/shell-completion/zsh/_systemctl.in index 0ee4856fa3..acc0bb7e1a 100644 --- a/shell-completion/zsh/_systemctl.in +++ b/shell-completion/zsh/_systemctl.in @@ -136,7 +136,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 } |