diff options
author | Oliver Kiddle <opk@users.sourceforge.net> | 2003-04-24 12:39:38 +0000 |
---|---|---|
committer | Oliver Kiddle <opk@users.sourceforge.net> | 2003-04-24 12:39:38 +0000 |
commit | 3985ac70c36a466f778873376120e87beaef171a (patch) | |
tree | 09ea73791aa702c31311f8f3ebd7235cf7d8de80 | |
parent | 7f9b62612b74e8030e2fda7c32516fc5cb52b540 (diff) | |
download | zsh-3985ac70c36a466f778873376120e87beaef171a.tar.gz zsh-3985ac70c36a466f778873376120e87beaef171a.tar.xz zsh-3985ac70c36a466f778873376120e87beaef171a.zip |
use _message for error message instead of echo
-rw-r--r-- | ChangeLog | 3 | ||||
-rw-r--r-- | Completion/Unix/Type/_perl_basepods | 6 |
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 |