mirror of
https://github.com/systemd/systemd.git
synced 2025-03-14 04:58:28 +03:00
zsh/coredumpctl: don't print warnings from completion function
This commit is contained in:
parent
ffc7a6e931
commit
0e9ab1af64
@ -16,7 +16,7 @@ _coredumpctl_command(){
|
||||
local -a _dumps
|
||||
cmd="${${_coredumpctl_cmds[(r)$words[1]:*]%%:*}}"
|
||||
if (( $#cmd )); then
|
||||
_dumps=( "${(f)$(coredumpctl list --no-legend | awk 'BEGIN{OFS=":"} {sub(/[[ \t]+/, ""); print $4,$0}' 2>/dev/null)}" )
|
||||
_dumps=( "${(f)$(coredumpctl list -q --no-legend | awk 'BEGIN{OFS=":"} {sub(/[[ \t]+/, ""); print $4,$0}' 2>/dev/null)}" )
|
||||
if [[ -n "$_dumps" ]]; then
|
||||
_describe -V -t pids 'coredumps' _dumps
|
||||
else
|
||||
|
Loading…
x
Reference in New Issue
Block a user