zsh-workers
 help / color / mirror / code / Atom feed
From: "Benjamin R. Haskell" <zsh@benizi.com>
To: Zsh Workers <zsh-workers@zsh.org>
Subject: Broken completion on $prefix/*
Date: Wed, 10 Mar 2010 15:02:25 -0500 (EST)	[thread overview]
Message-ID: <alpine.LNX.2.01.1003101440260.31893@hp.internal> (raw)

I can't get file-completion in this context:

## define the variable '$prefix'
$ prefix=long/relative/path/to/stuff

## [slightly-OT]
## example of why that variable name made sense
## $ run-some-command --blah-dir $prefix/blah --arga-dir $prefix/arga

## example of where I wanted completion, but it didn't work
$ find $prefix/<Tab>
(shows completion for '/')

## Attempts with variable names $outputdir or $asdfdsa both work fine.
$ outputdir=$prefix
$ find $outputdir/<Tab>
(shows completion for 'long/relative/path/to/stuff')

$ asdfdsa=$prefix
$ find $asdfdsa/<Tab>
(shows completion for 'long/relative/path/to/stuff')

I assume this is an artifact of something localizing '$prefix' before 
its value is used for completion, but I don't see it right off.

Found using zsh 4.3.10 (patch level 1.4705) at work, but I'm pretty sure 
it's still present in latest git (assuming I'm setting up my fpath 
correctly on my home machine) and it's also in 4.3.4 (on an old server).

-- 
Best,
Ben


             reply	other threads:[~2010-03-10 20:09 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-03-10 20:02 Benjamin R. Haskell [this message]
2010-03-11 16:27 ` Greg Klanderman
2010-03-11 17:37   ` Benjamin R. Haskell
2010-03-12  0:36     ` Greg Klanderman

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=alpine.LNX.2.01.1003101440260.31893@hp.internal \
    --to=zsh@benizi.com \
    --cc=zsh-workers@zsh.org \
    /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).