Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
PATCH: _perl_modules caution
- X-seq: zsh-workers 11599
- From: Clint Adams <schizo@xxxxxxxxxx>
- To: zsh-workers@xxxxxxxxxxxxxx
- Subject: PATCH: _perl_modules caution
- Date: Fri, 26 May 2000 10:03:45 -0400
- Mailing-list: contact zsh-workers-help@xxxxxxxxxxxxxx; run by ezmlm
If @INC contains nonexistent directories, the cd below will fail,
which, in turn, leads to results that are ugly at best.
Index: Completion/User/_perl_modules
===================================================================
RCS file: /cvsroot/zsh/zsh/Completion/User/_perl_modules,v
retrieving revision 1.4
diff -u -r1.4 _perl_modules
--- Completion/User/_perl_modules 2000/05/23 18:06:32 1.4
+++ Completion/User/_perl_modules 2000/05/26 14:00:10
@@ -46,9 +46,11 @@
if [[ $libdir == '.' ]]; then break; fi
# Find all modules
+ if [[ -d $libdir && -x $libdir ]]; then
cd $libdir
new_pms=( {[A-Z]*/***/,}*.pm~*blib*(N) )
cd $OLDPWD
+ fi
# Convert to Perl nomenclature
new_pms=( ${new_pms:r:fs#/#::#} )
Messages sorted by:
Reverse Date,
Date,
Thread,
Author