• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 4780
  • Last Modified:

auto-complete

WHat shall I do to get auto complete in my korn shell?
I have sun SOlaris.
0
mdoland
Asked:
mdoland
1 Solution
 
griesshCommented:
You have to set your editor. Do a 'set -o' to see your settings. I usually use the 'set -o gmacs'. That will give you the complete functionality and with a few aliases you can use your arrow keys to go through your command history.

======
Werner
0
 
ahoffmannCommented:
set -o vi
 then you can use Ctrl-X as file-complete
0
 
chris_calabreseCommented:
My experience in Solaris (at least 2.7 and earlier) is that ksh file completion does not work.
0
Introducing Cloud Class® training courses

Tech changes fast. You can learn faster. That’s why we’re bringing professional training courses to Experts Exchange. With a subscription, you can access all the Cloud Class® courses to expand your education, prep for certifications, and get top-notch instructions.

 
ahoffmannCommented:
oops, my suggestion only works for pdksh, sorry.
Solaris comes with a "true" ksh, usally, then you have to use:

set -o vi
then type you text and where you need file completeion type ESC follwed by a *
0
 
eing9607Commented:
Try 'set -o emacs' and 'set filec'. I.e if emacs is installed, otherwise use vi.
0
 
chris_calabreseCommented:
Yes, <ESC>* does work in Solaris, but the even more useful <ESC><ESC> does not.

The difference between these two is that <ESC>* expands to all matching files, while <ESC><ESC> expands only as far as it can without generating multiple file names.  I don't know why this doesn't work in the Solaris ksh.
0
 
ahoffmannCommented:
chris_calabrese, does <ESC><ESC> work in AIX's HP-UX's or IRIX's ksh (sorry, cant't test at the moment, but want to put this info in my shell-answerbook;-)
0
 
chris_calabreseCommented:
Yes for HP-UX, AIX, UnixWare, and for the ksh you can get from research.att.com.  Don't have an IRIX system to test on though.
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say thank you for being a part of the community.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now