diff options
author | Peter Stephenson <pws@users.sourceforge.net> | 2008-01-16 13:38:55 +0000 |
---|---|---|
committer | Peter Stephenson <pws@users.sourceforge.net> | 2008-01-16 13:38:55 +0000 |
commit | 17412e3c7d1add9eb02ba15334a238061a355135 (patch) | |
tree | 6ca1b252e760e19b347cdd78e26bdbdcace7690a | |
parent | 3823be143b75737a20a5bdac685586320db79063 (diff) | |
download | zsh-17412e3c7d1add9eb02ba15334a238061a355135.tar.gz zsh-17412e3c7d1add9eb02ba15334a238061a355135.tar.xz zsh-17412e3c7d1add9eb02ba15334a238061a355135.zip |
24388: tidy up error if MH not available
-rw-r--r-- | ChangeLog | 5 | ||||
-rw-r--r-- | Completion/Unix/Command/_mh | 5 |
2 files changed, 10 insertions, 0 deletions
diff --git a/ChangeLog b/ChangeLog index cc2948574..c4de495ff 100644 --- a/ChangeLog +++ b/ChangeLog @@ -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-* diff --git a/Completion/Unix/Command/_mh b/Completion/Unix/Command/_mh index 69f6c2da2..48177982e 100644 --- a/Completion/Unix/Command/_mh +++ b/Completion/Unix/Command/_mh @@ -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 |