From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 15757 invoked from network); 2 Jul 2003 17:42:10 -0000 Received: from sunsite.dk (130.225.247.90) by ns1.primenet.com.au with SMTP; 2 Jul 2003 17:42:10 -0000 Received: (qmail 24166 invoked by alias); 2 Jul 2003 17:42:01 -0000 Mailing-List: contact zsh-users-help@sunsite.dk; run by ezmlm Precedence: bulk X-No-Archive: yes X-Seq: 6345 Received: (qmail 24159 invoked from network); 2 Jul 2003 17:42:01 -0000 Received: from localhost (HELO sunsite.dk) (127.0.0.1) by localhost with SMTP; 2 Jul 2003 17:42:01 -0000 X-MessageWall-Score: 0 (sunsite.dk) Received: from [216.19.209.133] by sunsite.dk (MessageWall 1.0.8) with SMTP; 2 Jul 2003 17:42:0 -0000 Received: (qmail 9050 invoked from network); 2 Jul 2003 10:38:10 -0000 Received: from unknown (HELO amethyst.cql.com) (192.168.1.14) by mail.cql.com with SMTP; 2 Jul 2003 10:38:10 -0000 Date: Wed, 2 Jul 2003 10:41:58 -0700 From: Seth Kurtzberg To: Dan Nelson Cc: zsh-users@sunsite.dk Subject: Re: expansion after =? Message-Id: <20030702104158.7e7ea40d.seth@cql.com> In-Reply-To: <20030702173623.GA59317@dan.emsphone.com> References: <20030702103112.33a2cfe4.seth@cql.com> <20030702173623.GA59317@dan.emsphone.com> Organization: M. I. S. Corp. X-Mailer: Sylpheed version 0.9.2 (GTK+ 1.2.10; i686-pc-linux-gnu) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit 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 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