From: Seth Kurtzberg <seth@cql.com>
To: Dan Nelson <dnelson@allantgroup.com>
Cc: zsh-users@sunsite.dk
Subject: Re: expansion after =?
Date: Wed, 2 Jul 2003 10:41:58 -0700 [thread overview]
Message-ID: <20030702104158.7e7ea40d.seth@cql.com> (raw)
In-Reply-To: <20030702173623.GA59317@dan.emsphone.com>
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@allantgroup.com> 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@allantgroup.com
>
--
Seth Kurtzberg
MIS Corp
480-661-1849
seth@cql.com
next prev parent reply other threads:[~2003-07-02 17:42 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2003-07-02 17:31 Seth Kurtzberg
2003-07-02 17:36 ` Dan Nelson
2003-07-02 17:40 ` Seth Kurtzberg
2003-07-02 17:41 ` Seth Kurtzberg [this message]
2003-07-02 17:39 ` Peter Stephenson
2003-07-02 18:15 ` Seth Kurtzberg
2003-07-03 11:29 ` Peter Stephenson
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=20030702104158.7e7ea40d.seth@cql.com \
--to=seth@cql.com \
--cc=dnelson@allantgroup.com \
--cc=zsh-users@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).