Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: expansion after =?
- X-seq: zsh-users 6345
- From: Seth Kurtzberg <seth@xxxxxxx>
- To: Dan Nelson <dnelson@xxxxxxxxxxxxxxx>
- Subject: Re: expansion after =?
- Date: Wed, 2 Jul 2003 10:41:58 -0700
- Cc: zsh-users@xxxxxxxxxx
- In-reply-to: <20030702173623.GA59317@xxxxxxxxxxxxxxxx>
- Mailing-list: contact zsh-users-help@xxxxxxxxxx; run by ezmlm
- Organization: M. I. S. Corp.
- References: <20030702103112.33a2cfe4.seth@xxxxxxx> <20030702173623.GA59317@xxxxxxxxxxxxxxxx>
Sorry, I responded without reading quite carefully enough.
I did know about this feature but it isn't what I'm referring to, so let me be more clear (hopefully).
I'm talking not about this type of expansion (sorry if I didn't use the correct terminology). I'm talking about the case where you use completion, with the tab key, while setting an environment variable.
On Wed, 2 Jul 2003 12:36:23 -0500
Dan Nelson <dnelson@xxxxxxxxxxxxxxx> wrote:
> In the last episode (Jul 02), Seth Kurtzberg said:
> > Hello list,
> >
> > Is there a configuration parameter or option that enables path
> > completion after equals, for example, export ENVVAR=/some/path/name?
> > I've been using zsh for some months now, and this is the only thing
> > that bash does that I find missing in zsh. But perhaps the behavior
> > can be turned on in some way?
>
> Try two equals signs, one for the assignment, and one for path
> expansion.
>
> dan% PAGER==less
> dan% echo $PAGER
> /usr/bin/less
> dan%
>
> It's documented under FILENAME EXPANSION:
>
> If a word begins with an unquoted `=' and the EQUALS
> option is set, the remainder of the word is taken as the
> name of a command or alias. If a command exists by that
> name, the word is replaced by the full pathname of the
> command. If an alias exists by that name, the word is
> replaced with the text of the alias.
>
> I didn't even know bash could do path expansion.
>
> --
> Dan Nelson
> dnelson@xxxxxxxxxxxxxxx
>
--
Seth Kurtzberg
MIS Corp
480-661-1849
seth@xxxxxxx
Messages sorted by:
Reverse Date,
Date,
Thread,
Author