summary refs log tree commit diff
path: root/Completion/Unix
diff options
context:
space:
mode:
authorOliver Kiddle <opk@users.sourceforge.net>2003-04-24 12:39:38 +0000
committerOliver Kiddle <opk@users.sourceforge.net>2003-04-24 12:39:38 +0000
commit3985ac70c36a466f778873376120e87beaef171a (patch)
tree09ea73791aa702c31311f8f3ebd7235cf7d8de80 /Completion/Unix
parent7f9b62612b74e8030e2fda7c32516fc5cb52b540 (diff)
downloadzsh-3985ac70c36a466f778873376120e87beaef171a.tar.gz
zsh-3985ac70c36a466f778873376120e87beaef171a.tar.xz
zsh-3985ac70c36a466f778873376120e87beaef171a.zip
use _message for error message instead of echo
Diffstat (limited to 'Completion/Unix')
-rw-r--r--Completion/Unix/Type/_perl_basepods6
1 files changed, 3 insertions, 3 deletions
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