Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: expansion after =?
- X-seq: zsh-users 6344
- From: Seth Kurtzberg <seth@xxxxxxx>
- To: Dan Nelson <dnelson@xxxxxxxxxxxxxxx>
- Subject: Re: expansion after =?
- Date: Wed, 2 Jul 2003 10:40:06 -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>
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.
Thanks much. I did look in the docs but somehow I missed it.
>
> I didn't even know bash could do path expansion.
It doesn't do it nearly as well as zsh, but it does manage to more or less do it. But I would never go back to bash after using zsh.
>
> --
> Dan Nelson
> dnelson@xxxxxxxxxxxxxxx
>
--
Seth Kurtzberg
MIS Corp
480-661-1849
seth@xxxxxxx
Messages sorted by:
Reverse Date,
Date,
Thread,
Author