Solved

auto-complete

Posted on 2001-08-02
8
4,766 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
Independent Software Vendors: 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!

 
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

Free Tool: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Hello fellow BSD lovers, I've created a patch process for patching openjdk6 for BSD (FreeBSD specifically), although I tried to keep all BSD versions in mind when creating my patch. Welcome to OpenJDK6 on BSD First let me start with a little …
In tuning file systems on the Solaris Operating System, changing some parameters of a file system usually destroys the data on it. For instance, changing the cache segment block size in the volume of a T3 requires that you delete the existing volu…
Learn how to get help with Linux/Unix bash shell commands. Use help to read help documents for built in bash shell commands.: Use man to interface with the online reference manuals for shell commands.: Use man to search man pages for unknown command…
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.:
Suggested Courses

737 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