1
0
Fork 0
mirror of git://git.code.sf.net/p/zsh/code synced 2025-09-01 09:41:44 +02:00

24388: tidy up error if MH not available

This commit is contained in:
Peter Stephenson 2008-01-16 13:38:55 +00:00
parent 3823be143b
commit 17412e3c7d
2 changed files with 10 additions and 0 deletions

View file

@ -1,3 +1,8 @@
2008-01-14 Peter Stephenson <pws@csr.com>
* 24388: Completion/Unix/Command/_mh: abort neatly if MH
commands not found.
2008-01-13 Clint Adams <clint@zsh.org>
* 24387: Completion/Debian/Command/_dpkg: update --force-*

View file

@ -1,5 +1,10 @@
#compdef ali anno burst comp dist flist flists folder folders forw inc mark mhlist mhmail mhn mhparam mhpath mhshow mhstore msgchk next packf pick prev refile repl rmf rmm scan show sortm whom
if [[ -z $commands[mhpath] ]]; then
_message "MH commands are not available"
return 1
fi
# Completion for all possible MH commands.
local mymhdir=${$(_call_program mhpath mhpath + 2>/dev/null):-~/Mail}
local mhlib=/usr/lib/mh