From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 14530 invoked from network); 2 Jul 2003 17:40:18 -0000 Received: from sunsite.dk (130.225.247.90) by ns1.primenet.com.au with SMTP; 2 Jul 2003 17:40:18 -0000 Received: (qmail 23142 invoked by alias); 2 Jul 2003 17:40:08 -0000 Mailing-List: contact zsh-users-help@sunsite.dk; run by ezmlm Precedence: bulk X-No-Archive: yes X-Seq: 6344 Received: (qmail 23135 invoked from network); 2 Jul 2003 17:40:08 -0000 Received: from localhost (HELO sunsite.dk) (127.0.0.1) by localhost with SMTP; 2 Jul 2003 17:40:08 -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:40:7 -0000 Received: (qmail 9015 invoked from network); 2 Jul 2003 10:36:18 -0000 Received: from unknown (HELO amethyst.cql.com) (192.168.1.14) by mail.cql.com with SMTP; 2 Jul 2003 10:36:18 -0000 Date: Wed, 2 Jul 2003 10:40:06 -0700 From: Seth Kurtzberg To: Dan Nelson Cc: zsh-users@sunsite.dk Subject: Re: expansion after =? Message-Id: <20030702104006.4f79cb70.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 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. 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@allantgroup.com > -- Seth Kurtzberg MIS Corp 480-661-1849 seth@cql.com