about summary refs log tree commit diff
diff options
context:
space:
mode:
authorDaniel Shahaf <d.s@daniel.shahaf.name>2016-08-27 18:44:47 +0000
committerDaniel Shahaf <d.s@daniel.shahaf.name>2016-08-30 01:57:54 +0000
commit1712c626339c3e7f40273d9e57906fab96a329a9 (patch)
tree6e9ba291d5ee39257d025ddaef478e4941d65a39
parentfa48711e31c4d45819455e767ad106c41f9a92fe (diff)
downloadzsh-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.
-rw-r--r--ChangeLog5
-rw-r--r--Completion/Unix/Command/_postfix2
2 files changed, 6 insertions, 1 deletions
diff --git a/ChangeLog b/ChangeLog
index 8bc9372d6..d33d9b2c0 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2016-08-30  Daniel Shahaf  <d.s@daniel.shahaf.name>
+
+	* 39109: Completion/Unix/Command/_postfix: Use mailq to obtain
+	queue id's.
+
 2016-08-29  Mikael Magnusson  <mikachu@gmail.com>
 
 	* 39112: Completion/X/Command/_x_utils: Use state_descr
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