diff options
author | Lennart Poettering <lennart@poettering.net> | 2016-01-26 16:14:11 +0100 |
---|---|---|
committer | Lennart Poettering <lennart@poettering.net> | 2016-01-26 16:14:11 +0100 |
commit | 3820ed90335211dc208b048f1ff48ae66940ce3b (patch) | |
tree | 5a4704200340aaa39d90a18e3e09c30b78fda16c /shell-completion/zsh/_journalctl | |
parent | 590e0ac4bd42420d69d150a7aa7fb016693ea1ac (diff) | |
parent | 655fd9d71f22dc3efe4f4fae2da633c93cb67292 (diff) |
Merge pull request #2433 from dobyrch/master
zsh-completion: Escape results for `journalctl --unit`
Diffstat (limited to 'shell-completion/zsh/_journalctl')
-rw-r--r-- | shell-completion/zsh/_journalctl | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/shell-completion/zsh/_journalctl b/shell-completion/zsh/_journalctl index b50f0cafc9..2bee23b6d3 100644 --- a/shell-completion/zsh/_journalctl +++ b/shell-completion/zsh/_journalctl @@ -34,7 +34,10 @@ _journal_none() { _journal_fields() { local -a _fields cmd cmd=("journalctl" "-F ${@[-1]}" "2>/dev/null" ) - _fields=( ${(f)"$(_call_program fields $cmd[@])"} ) + _fields=$(_call_program fields $cmd[@]) + _fields=${_fields//'\'/'\\'} + _fields=${_fields//':'/'\:'} + _fields=( ${(f)_fields} ) typeset -U _fields _describe 'possible values' _fields } |