Solved

auto-complete

Posted on 2001-08-02
8
4,763 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
PRTG Network Monitor: Intuitive Network Monitoring

Network Monitoring is essential to ensure that computer systems and network devices are running. Use PRTG to monitor LANs, servers, websites, applications and devices, bandwidth, virtual environments, remote systems, IoT, and many more. PRTG is easy to set up & use.

 
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

U.S. Department of Agriculture and Acronis Access

With the new era of mobile computing, smartphones and tablets, wireless communications and cloud services, the USDA sought to take advantage of a mobilized workforce and the blurring lines between personal and corporate computing resources.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Help stop mail server from sending spam. 27 127
Java core in Solaris 10 1 283
Unix How to Bulk Remove Multiple Directories from FileSystem 10 77
Linux hostname change 2 72
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 …
Every server (virtual or physical) needs a console: and the console can be provided through hardware directly connected, software for remote connections, local connections, through a KVM, etc. This document explains the different types of consol…
Learn several ways to interact with files and get file information from the bash shell. ls lists the contents of a directory: Using the -a flag displays hidden files: Using the -l flag formats the output in a long list: The file command gives us mor…
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.:

809 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