Auto Completion of Ksh Commands

Auto Completion of Ksh Commands

Post by Simon Da » Wed, 01 Mar 2000 04:00:00



Hi, big guys, I'm new to AIX, just wondering how I can get the auto
completion on ksh commands done like Esc+\ in Solaris and HP, I've run
"set -o vi", but this seems not working on AIX 4.3, anybody can tell me how
to do that? Thanks a lot.

Simon

 
 
 

Auto Completion of Ksh Commands

Post by Henric Rhodi » Wed, 01 Mar 2000 04:00:00


Quote:> Hi, big guys, I'm new to AIX, just wondering how I can get the auto
> completion on ksh commands done like Esc+\ in Solaris and HP, I've run
> "set -o vi", but this seems not working on AIX 4.3, anybody can tell me
how
> to do that? Thanks a lot.

> Simon

Try "set -o emacs", then auto completion works with ESC ESC. Or install bash
:)

/Henric

 
 
 

Auto Completion of Ksh Commands

Post by jmcelro » Wed, 01 Mar 2000 04:00:00


try '<escape> *'.  Here is an example

$cd /etc
$ls -al p<escape>*

This will expand all matching files, so it is not exactly the same as <tab> in
bash

Jeff McElroy


> Hi, big guys, I'm new to AIX, just wondering how I can get the auto
> completion on ksh commands done like Esc+\ in Solaris and HP, I've run
> "set -o vi", but this seems not working on AIX 4.3, anybody can tell me how
> to do that? Thanks a lot.

> Simon

 
 
 

Auto Completion of Ksh Commands

Post by Matthew Land » Wed, 01 Mar 2000 04:00:00



> Hi, big guys, I'm new to AIX, just wondering how I can get the auto
> completion on ksh commands done like Esc+\ in Solaris and HP, I've run
> "set -o vi", but this seems not working on AIX 4.3, anybody can tell me how
> to do that? Thanks a lot.

> Simon

I don't know why you are having problems (as long as you are talking about
filename completion).  KSH on AIX with "set -o vi" works the same with
ESC \.

Now if you are really talking about COMMAND completion KSH doesn't support
true command completion.  This is where if you were to type "wr" for the
command then ESC \ it would search your path for a command with "wr" and
complete it if it can "write".

 - Matt

--

  AIX and HACMP Certified Specialist    | |  / \ |\| |  \. ,_|    _| --
  / Comments, views, and opinions \     | |_/ ^ \|   | ) | |      \, *_)
  \ are mine alone, not IBM's.    /     |___|/~\_\_|\|__/|_|        \(

 
 
 

Auto Completion of Ksh Commands

Post by Ted Linne » Fri, 03 Mar 2000 04:00:00



>Hi, big guys, I'm new to AIX, just wondering how I can get the auto
>completion on ksh commands done like Esc+\ in Solaris and HP, I've run
>"set -o vi", but this seems not working on AIX 4.3, anybody can tell me how
>to do that? Thanks a lot.

Not sure why it is not working for you.
Works for me using AIX 4.2.1.

Ted.
==============================================================

| BSc GradDipDP CNA MACS PCP                                 |
| Nunawading, Victoria , Australia                           |
==============================================================

 
 
 

1. ksh: 2 Q's, command completion & command history?

Hi all,

Command completion in ksh is done with Esc Esc (hitting the escape key
twice). Although I've never been successful at getting this to work on
my system at work (AIX 3.2.5), I read that's the key sequence for
command/path completion.

My question is, can that be changed to the Tab key and if so how, in
ksh? Command completion in tcsh and bash use the Tab key. The Tab key is
SO MUCH MORE convenient a key for command completion.

Another question... about previous command retrieval. bash and tcsh use
the UP and DOWN arrow keys for command retrieval. ksh uses Esc-k & Esc-j
respectively. UP & DOWN are MUCH BETTER choices. Can this be changed in
ksh and how?

Any guidance would be appreciated. I like the ksh for it's better (I
think so) scripting/programming features but the way it implements
command/path completion and previous command retrieval is really
annoying me. So much time can be saved with the use of Tab and UP,DOWN
keys.

Thanks, Zoran.

2. HP Jetdirect 170X

3. 2.4.x kernel and auto-completion command

4. Solaris 2.6 x86+Linux+WinNT+Win95

5. ksh Filename Completion using vi command line editing mode?

6. Process that won't die

7. command completion like bash under ksh

8. Question about D1000 and A1000 diskarray

9. command completion in ksh ?

10. command line completion in ksh

11. command completion in ksh

12. ksh: vi inline editor command completion

13. ksh command completion