zsh-workers
 help / color / mirror / code / Atom feed
From: Peter Stephenson <pws@csr.com>
To: Bart Schaefer <schaefer@brasslantern.com>
Cc: zsh-workers@sunsite.dk
Subject: Re: expansion of environment variables
Date: Fri, 06 Mar 2009 09:51:39 +0000	[thread overview]
Message-ID: <200903060951.n269pdmT002060@news01.csr.com> (raw)
In-Reply-To: <090305205421.ZM5160@torch.brasslantern.com>

Bart Schaefer wrote:
> [>workers]
> 
> On Mar 5,  5:46pm, Peter Stephenson wrote:
> }
> } You're right, I missed that last step, there is indeed stuff in tmp1
> } including the correct completion.
> 
> I've been staring at this and I've concluded (possibly wrongly) that
> even the stuff in tmp1 is a bit of a red herring.
> 
> Correct me, but isn't the real problem that the string on the line
> still looks like "$key." but all of the possible matches look like
> "2345.xml"?

Yep, I'd eventually come to that conclusion.  I think compfiles is
generating files without doing any matching at this stage (I think it
would do clever stuff with globbing if requested for limiting the
matches, but that's not the case here), so we get a complete list of
files that may or may not match the command line.  Then the compadd -D
is doing the matching, and that's where it all falls over for the reason
you say.  We'd need at the least to massage or hide the $PREFIX/$SUFFIX
seen by that second step, or equivalent sneaky trick.

-- 
Peter Stephenson <pws@csr.com>                  Software Engineer
CSR PLC, Churchill House, Cambridge Business Park, Cowley Road
Cambridge, CB4 0WZ, UK                          Tel: +44 (0)1223 692070


  reply	other threads:[~2009-03-06  9:53 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <d5baa8100903050235ofd66039jf2c29b58684bc8d8@mail.gmail.com>
     [not found] ` <090305081548.ZM4603@torch.brasslantern.com>
     [not found]   ` <20090305165400.3fd18bc6@news01>
     [not found]     ` <090305092126.ZM4727@torch.brasslantern.com>
     [not found]       ` <200903051746.n25HkB77026580@news01.csr.com>
2009-03-06  4:54         ` Bart Schaefer
2009-03-06  9:51           ` Peter Stephenson [this message]
2009-03-06 17:17             ` 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=200903060951.n269pdmT002060@news01.csr.com \
    --to=pws@csr.com \
    --cc=schaefer@brasslantern.com \
    --cc=zsh-workers@sunsite.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).