From 93e0bc094fe10cb5b20a53818247d10a2ecdec14 Mon Sep 17 00:00:00 2001 From: Peter Stephenson Date: Wed, 28 Jul 2010 15:53:32 +0000 Subject: users/15204: in zfinit check for compctl before using --- Functions/Zftp/zfinit | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'Functions/Zftp') diff --git a/Functions/Zftp/zfinit b/Functions/Zftp/zfinit index 68e6a9691..5587a824c 100644 --- a/Functions/Zftp/zfinit +++ b/Functions/Zftp/zfinit @@ -34,7 +34,8 @@ autoload -Uz zfstat zftp_chpwd zftp_progress zftransfer zftype zfuget zfuput # zftp completions: only use these if new-style completion is not # active. # -if [[ ${#_patcomps} -eq 0 || -z ${_patcomps[(r)_zf*]} ]]; then +if [[ ${#_patcomps} -eq 0 || -z ${_patcomps[(r)_zf*]} ]] && + (compctl >/dev/null 2>&1); then # only way of getting that noglob out of the way: this is unnecessary with # widget-based completion setopt completealiases -- cgit 1.4.1