Solved

auto-complete

Posted on 2001-08-02
8
4,755 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
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
 
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
Highfive + Dolby Voice = No More Audio Complaints!

Poor audio quality is one of the top reasons people don’t use video conferencing. Get the crispest, clearest audio powered by Dolby Voice in every meeting. Highfive and Dolby Voice deliver the best video conferencing and audio experience for every meeting and every room.

 

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

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

Using libpcap/Jpcap to capture and send packets on Solaris version (10/11) Library used: 1.      Libpcap (http://www.tcpdump.org) Version 1.2 2.      Jpcap(http://netresearch.ics.uci.edu/kfujii/Jpcap/doc/index.html) Version 0.6 Prerequisite: 1.      GCC …
Java performance on Solaris - Managing CPUs There are various resource controls in operating system which directly/indirectly influence the performance of application. one of the most important resource controls is "CPU".   In a multithreaded…
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…
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.

705 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

Need Help in Real-Time?

Connect with top rated Experts

20 Experts available now in Live!

Get 1:1 Help Now