about summary refs log tree commit diff
diff options
context:
space:
mode:
-rw-r--r--ChangeLog3
-rw-r--r--Completion/Unix/Type/_perl_basepods6
2 files changed, 6 insertions, 3 deletions
diff --git a/ChangeLog b/ChangeLog
index bad67b4a0..fdbde9d30 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,8 @@
 2003-04-24  Oliver Kiddle  <opk@zsh.org>
 
+	* unposted: Completion/Unix/Type/_perl_basepods: use _message
+	instead of echo for error message
+
 	* 18468: Completion/Unix/Type/_perl_builtin_funcs: follow Bart's
 	suggestion of using perldoc itself to retrieve the documentation
 
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