chiark
/
gitweb
/
~ianmdlvl
/
elogind.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
eb89bc1
)
zsh-completion: Do not interpret escape sequences in _filter_units_by_property
author
Wieland Hoffmann
<themineo@gmail.com>
Sat, 17 Jan 2015 01:10:42 +0000
(
02:10
+0100)
committer
Martin Pitt
<martin.pitt@ubuntu.com>
Wed, 21 Jan 2015 09:59:40 +0000
(10:59 +0100)
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").
shell-completion/zsh/_systemctl.in
patch
|
blob
|
history
diff --git
a/shell-completion/zsh/_systemctl.in
b/shell-completion/zsh/_systemctl.in
index 3fa59faca16e8f6dc42cfe8f1e10866f388a4ab0..7f2d5ac0fa689b7357bfdd3c13e2703f09b03391 100644
(file)
--- 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
}