-====================-
-= Original Problem =-
-====================-
I'm not sure if the term 'command completion' is correct. What I'd like
(and used to have) was to type (say)
ls /tmp/ger
then <esc><esc>
and the shell would expand to
ls /tmp/gertrude
Any idea if there is a command to do this in ksh ?
-=====================-
-= Original Solution =-
-=====================-
Basically the solution was to
set -o emacs or
export EDITOR=emacs or
export VISUAL=emacs
This is great - however I prefer to use vi :) I can remember at the last place that I was
at, I had the functionality of the 'vi' command line, yet also the <esc><esc>. Truely a
mystery.
-===================-
-= Final Solution =-
-===================-
Most people suggested that I wasn't using ksh (probably tcsh, csh or bash). However
[John Schaeffer <jsch_at_conncoll.edu>] hit the nail on the head.
I *was* using ksh, and had 'set -o vi', however DU's Kornshell implementation provided
<esc>\ as the filename completion key, whereas HP-UX's implementation provided an
<esc><esc> key sequence !
Guess what version of unix I was using when I could use the <esc><esc> sequence ? :)
To be honest I didn't know that the ksh implmentations would differ at all. I thought that
there was some or other standard that all the vendors adhered to.
-======================================================-
-= *Thanks* to the those who took the time to respond =-
-======================================================-
Ian Piumarta <piumarta_at_prof.inria.fr>
Paul David Fardy <pdf_at_morgan.ucs.mun.ca>
John Schaeffer <jsch_at_conncoll.edu>
md_at_adv.sbc.sony.co.jp (Mark Dudley)
"Gernot M. Fuchs" <gfuchs_at_golay.med.unc.edu>
bremner_at_cs.mcgill.ca
BENNETT_at_mpgars.desy.de
sarasin_at_yosemite.cop.dec.com
comp-sun!randy_at_uu6.psi.com (Randy Styka
Jim Belonis <belonis_at_dirac.phys.washington.edu>
--
Carl Schei | Dexel (Pty) Ltd (Durban) |
Software Engineer | Tel : 27 31 2669273 |
email : carl_at_dexel.co.za | Fax : 27 31 2660340 |
----------------------------------------------------------------
Received on Thu Jun 13 1996 - 08:29:54 NZST