From 17412e3c7d1add9eb02ba15334a238061a355135 Mon Sep 17 00:00:00 2001 From: Peter Stephenson Date: Wed, 16 Jan 2008 13:38:55 +0000 Subject: 24388: tidy up error if MH not available --- Completion/Unix/Command/_mh | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'Completion/Unix') 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 -- cgit 1.4.1