mirror of
git://git.code.sf.net/p/zsh/code
synced 2025-09-02 22:11:54 +02:00
Avoid cd in _perl_modules.
This commit is contained in:
parent
ea807260e4
commit
dcc45ed860
2 changed files with 7 additions and 4 deletions
|
@ -1,3 +1,7 @@
|
|||
2000-11-15 Bart Schaefer <schaefer@zsh.org>
|
||||
|
||||
* 13167: Completion/User/_perl_modules: Avoid cd entirely.
|
||||
|
||||
2000-11-14 Bart Schaefer <schaefer@zsh.org>
|
||||
|
||||
* 13165 plus unposted: Completion/User/_perl_modules: `builtin cd'
|
||||
|
|
|
@ -67,13 +67,12 @@ _perl_modules () {
|
|||
|
||||
for libdir in $inc; do
|
||||
# Ignore cwd - could be too expensive e.g. if we're near /
|
||||
if [[ $libdir == '.' ]]; then break; fi
|
||||
if [[ $libdir == '.' ]]; then continue; fi
|
||||
|
||||
# Find all modules
|
||||
if [[ -d $libdir && -x $libdir ]]; then
|
||||
builtin cd $libdir
|
||||
new_pms=( {[A-Z]*/***/,}*.pm~*blib* )
|
||||
builtin cd $OLDPWD
|
||||
new_pms=( $libdir/{[A-Z]*/***/,}*.pm~*blib* )
|
||||
new_pms=( "${(@)new_pms##$libdir/##}" )
|
||||
fi
|
||||
|
||||
# Convert to Perl nomenclature
|
||||
|
|
Loading…
Reference in a new issue