From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from euclid.skiles.gatech.edu (list@euclid.skiles.gatech.edu [130.207.146.50]) by coral.primenet.com.au (8.7.5/8.7.3) with ESMTP id QAA01063 for ; Wed, 11 Sep 1996 16:23:04 +1000 (EST) Received: (from list@localhost) by euclid.skiles.gatech.edu (8.7.3/8.7.3) id CAA20541; Wed, 11 Sep 1996 02:08:53 -0400 (EDT) Resent-Date: Wed, 11 Sep 1996 02:03:39 -0400 (EDT) From: Geoff Wing Message-Id: <199609110601.QAA00745@coral.primenet.com.au> Subject: Re: The tcsh ^X? command To: zsh-users@math.gatech.edu Date: Wed, 11 Sep 1996 16:01:57 +1000 (EST) Cc: dov@Orbotech.Co.IL (Dov Grobgeld) In-Reply-To: <199609110519.IAA15804@pulsar.Polar.Bear> from "Dov Grobgeld" at Sep 11, 96 08:19:16 am X-Mailer: ELM [version 2.4 PL25] MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Resent-Message-ID: <"LsTAJ1.0.0_4.xObDo"@euclid> Resent-From: zsh-users@math.gatech.edu X-Mailing-List: archive/latest/404 X-Loop: zsh-users@math.gatech.edu X-Loop: zsh-workers@math.gatech.edu Precedence: list Resent-Sender: zsh-workers-request@math.gatech.edu Dov Grobgeld wrote: :I'm a new user of zsh and the first thing I tried to do is to make :sure that everything that I'm used to from tcsh exists. : :The one thing that got me stuck yesterday is the ^X? command which :does a 'which ' of the last word and replaces it. :E.g. : : ls -l perl^X? : ls -l /usr/local/bin/perl : :Is there any way to do the same thing in zsh? If you have ``setopt equals'' set (it is by default) then ls -l =perl will do it. is normally bound to `expand-or-complete' with emacs bindings or vi-insert-mode bindings. >>From zshexpn manual page: `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.' -- Geoff Wing [mason@primenet.com.au] PrimeNet - Internet Consultancy Web: http://www.primenet.com.au/ Facsimile: +61-3-9819 3788