diff options
author | Daniel Shahaf <d.s@daniel.shahaf.name> | 2016-08-27 18:44:47 +0000 |
---|---|---|
committer | Daniel Shahaf <d.s@daniel.shahaf.name> | 2016-08-30 01:57:54 +0000 |
commit | 1712c626339c3e7f40273d9e57906fab96a329a9 (patch) | |
tree | 6e9ba291d5ee39257d025ddaef478e4941d65a39 /Completion/Unix/Command | |
parent | fa48711e31c4d45819455e767ad106c41f9a92fe (diff) | |
download | zsh-1712c626339c3e7f40273d9e57906fab96a329a9.tar.gz zsh-1712c626339c3e7f40273d9e57906fab96a329a9.tar.xz zsh-1712c626339c3e7f40273d9e57906fab96a329a9.zip |
39109: _postfix: Use mailq to obtain queue id's.
'mailq' is usually in */bin (as opposed to */sbin) and so is more likely to be in $PATH.
Diffstat (limited to 'Completion/Unix/Command')
-rw-r--r-- | Completion/Unix/Command/_postfix | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Completion/Unix/Command/_postfix b/Completion/Unix/Command/_postfix index 0ced6c24a..68115694f 100644 --- a/Completion/Unix/Command/_postfix +++ b/Completion/Unix/Command/_postfix @@ -1,7 +1,7 @@ #compdef postsuper _postfix_queue_id() { -compadd ${${(M)${(f)"$(postqueue -p)"}:#(#s)([0-9A-F]##)*}/(#s)(#b)([0-9A-F]##)*/$match[1]} + compadd "$@" -- ${${(M)${(f)"$(_call_program mailq 'mailq')"}:#(#s)([0-9A-F]##)*}/(#s)(#b)([0-9A-F]##)*/$match[1]} } case $service in |