Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: PATCH: zsh and perl
- X-seq: zsh-workers 13169
- From: Adam Spiers <adam@xxxxxxxxxx>
- To: zsh-workers@xxxxxxxxxxxxxx
- Subject: Re: PATCH: zsh and perl
- Date: Thu, 16 Nov 2000 12:18:15 +0000
- In-reply-to: <1001115160357.ZM4881@xxxxxxxxxxxxxxxxxxxxxxx>; from schaefer@xxxxxxxxxxxxxxxxxxxxxxx on Wed, Nov 15, 2000 at 04:03:57PM +0000
- Mail-followup-to: zsh-workers@xxxxxxxxxxxxxx
- Mailing-list: contact zsh-workers-help@xxxxxxxxxxxxxx; run by ezmlm
- References: <200011151056.LAA05515@xxxxxxxxxxxxxxxxxxxxxxxxxxxx> <1001115160357.ZM4881@xxxxxxxxxxxxxxxxxxxxxxx>
- Reply-to: Adam Spiers <adam@xxxxxxxxxx>
Bart Schaefer (schaefer@xxxxxxxxxxxxxxxxxxxxxxx) wrote:
> On Nov 15, 11:56am, Sven Wischnowsky wrote:
> }
> } I'm sure I'm missing something, but... why not just avoid the cd
> } altogether? Something like
> }
> } new_pms=( $libdir/{[a-Z]*/***/,}*.pm~*blib* )
> } new_pms=( "${(@)new_pms#$libdir/}" )
>
> I wondered about that myself.
>
> } probably testing if $libdir is non-empty before that...
>
> We already have reasonably confidence that $libdir is non-empty because it
> came either from perl's @INC array or from a previous glob which it's then
> iterating over with `for'. It also tests [[ -d $libdir && -x $libdir ]],
> so I can't think of any reason for doing the cd.
There probably isn't a good reason; I suspect I was struggling with
the expansions at the time and thought this would simplify things.
Messages sorted by:
Reverse Date,
Date,
Thread,
Author