Solved

auto-complete

Posted on 2001-08-02
8
4,767 Views
Last Modified: 2013-12-06
WHat shall I do to get auto complete in my korn shell?
I have sun SOlaris.
0
Comment
Question by:mdoland
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
8 Comments
 
LVL 11

Expert Comment

by:griessh
ID: 6344581
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
 
LVL 51

Expert Comment

by:ahoffmann
ID: 6345237
set -o vi
 then you can use Ctrl-X as file-complete
0
 
LVL 14

Expert Comment

by:chris_calabrese
ID: 6345938
My experience in Solaris (at least 2.7 and earlier) is that ksh file completion does not work.
0
What Is Transaction Monitoring and who needs it?

Synthetic Transaction Monitoring that you need for the day to day, which ensures your business website keeps running optimally, and that there is no downtime to impact your customer experience.

 
LVL 51

Expert Comment

by:ahoffmann
ID: 6346705
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
 

Accepted Solution

by:
eing9607 earned 30 total points
ID: 6348237
Try 'set -o emacs' and 'set filec'. I.e if emacs is installed, otherwise use vi.
0
 
LVL 14

Expert Comment

by:chris_calabrese
ID: 6348513
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
 
LVL 51

Expert Comment

by:ahoffmann
ID: 6348637
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
 
LVL 14

Expert Comment

by:chris_calabrese
ID: 6348663
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

Featured Post

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Attention: This article will no longer be maintained. If you have any questions, please feel free to mail me. jgh@FreeBSD.org Please see http://www.freebsd.org/doc/en_US.ISO8859-1/articles/freebsd-update-server/ for the updated article. It is avail…
Why Shell Scripting? Shell scripting is a powerful method of accessing UNIX systems and it is very flexible. Shell scripts are required when we want to execute a sequence of commands in Unix flavored operating systems. “Shell” is the command line i…
Learn how to find files with the shell using the find and locate commands. Use locate to find a needle in a haystack.: With locate, check if the file still exists.: Use find to get the actual location of the file.:
This video shows how to set up a shell script to accept a positional parameter when called, pass that to a SQL script, accept the output from the statement back and then manipulate it in the Shell.

690 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question