tru64-unix-managers (formerly alpha-osf-managers) (1994-2012)
 help / color / mirror / Atom feed
* [SUMMARY x 2] Command Completion
@ 1996-06-13  5:18 Dexel - Durban
  0 siblings, 0 replies; only message in thread
From: Dexel - Durban @ 1996-06-13  5:18 UTC (permalink / raw)
  To: tru64-unix-managers

-====================-
-= 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@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@prof.inria.fr>
Paul David Fardy <pdf@morgan.ucs.mun.ca>
John Schaeffer <jsch@conncoll.edu>
md@adv.sbc.sony.co.jp (Mark Dudley)
"Gernot M. Fuchs" <gfuchs@golay.med.unc.edu>
bremner@cs.mcgill.ca
BENNETT@mpgars.desy.de
sarasin@yosemite.cop.dec.com
comp-sun!randy@uu6.psi.com (Randy Styka
Jim Belonis <belonis@dirac.phys.washington.edu>

-- 
Carl Schei			| Dexel (Pty) Ltd (Durban)	|
Software Engineer		| Tel : 27 31 2669273		|
email : carl@dexel.co.za      	| Fax : 27 31 2660340		|
----------------------------------------------------------------

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~1996-06-13  5:18 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
1996-06-13  5:18 [SUMMARY x 2] Command Completion Dexel - Durban

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox