From 3985ac70c36a466f778873376120e87beaef171a Mon Sep 17 00:00:00 2001 From: Oliver Kiddle Date: Thu, 24 Apr 2003 12:39:38 +0000 Subject: use _message for error message instead of echo --- Completion/Unix/Type/_perl_basepods | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'Completion') diff --git a/Completion/Unix/Type/_perl_basepods b/Completion/Unix/Type/_perl_basepods index 5c8034a96..1dbd92551 100644 --- a/Completion/Unix/Type/_perl_basepods +++ b/Completion/Unix/Type/_perl_basepods @@ -8,7 +8,7 @@ # The result is cached for future use. # -if [[ ${+_perl_basepods} -eq 0 ]]; then +if (( ! $+_perl_basepods )); then typeset -agU _perl_basepods if (( ${+commands[basepods]} )); then @@ -19,7 +19,7 @@ if [[ ${+_perl_basepods} -eq 0 ]]; then podpath=$(perl -MConfig -e 'print "$Config{installprivlib}/pod"') if [[ ! -e $podpath/perl.pod ]]; then - echo "Couldn't find perl.pod from Config.pm; giving up." + _message "can't find perl.pod from Config.pm; giving up" return 1 else _perl_basepods=( ${podpath}/*.pod(:r:t) ) @@ -29,4 +29,4 @@ fi local expl -_wanted pods expl 'Perl base pods' compadd -a _perl_basepods +_wanted pods expl 'perl base pods' compadd -a - _perl_basepods -- cgit 1.4.1