zsh-workers
 help / color / mirror / code / Atom feed
From: Adam Spiers <adam@spiers.net>
To: zsh-workers@sunsite.auc.dk
Subject: Re: PATCH: zsh and perl
Date: Thu, 16 Nov 2000 12:18:15 +0000	[thread overview]
Message-ID: <20001116121815.B29327@thelonious.new.ox.ac.uk> (raw)
In-Reply-To: <1001115160357.ZM4881@candle.brasslantern.com>; from schaefer@candle.brasslantern.com on Wed, Nov 15, 2000 at 04:03:57PM +0000

Bart Schaefer (schaefer@candle.brasslantern.com) 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.


  reply	other threads:[~2000-11-16 12:18 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2000-11-15 10:56 Sven Wischnowsky
2000-11-15 16:03 ` Bart Schaefer
2000-11-16 12:18   ` Adam Spiers [this message]
  -- strict thread matches above, loose matches on Subject: below --
2000-11-14 12:47 Paul Johnson
2000-11-14 16:10 ` Bart Schaefer

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20001116121815.B29327@thelonious.new.ox.ac.uk \
    --to=adam@spiers.net \
    --cc=zsh-workers@sunsite.auc.dk \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.vuxu.org/mirror/zsh/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).