Solaris / OpenSolarisThis forum is for the discussion of Solaris, OpenSolaris, OpenIndiana, and illumos.
General Sun, SunOS and Sparc related questions also go here. Any Solaris fork or distribution is welcome.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
I'm running ksh on emacs mode, so that I can type <ESC><ESC> for filename completion and <ESC>= for a listing of files/directories.
However, command completion bash style does not seem to work.
e.g. if I type netst<ESC><ESC> nothing happens, whereas netst<TAB> on a bash shell (in linux) does complete to netstat
I've been searching google for a bit about this, but while there are loads of links talking about command completion for ksh, they are actually talking about filename/directory name completion, which is not quite the same.
I'm running on Solaris 10
Is command completion actually possible with korn shell?
TIA
edit:
command completion does work on my rhel6 box running ksh Version JM 93t+ 2010-06-21
I can't get the version in solaris, must be a different variable to KSH_VERSION or VERSION
Last edited by manyrootsofallevil; 03-30-2011 at 10:01 AM.
Have you check the man page of ksh? It's plentyful of interesting information.
In Korn Shell, you must bind your key in your profile rc. This is why Korn Shell is considered not user friendly but quite powerful. I ran in this problem under AIX back in time and I decide that I would use sh or csh instead of ksh as my shell but I would always code in Korn Shell. Back in time, I didn't review the manpage of ksh but I had to do it yesterday for something else and I figured that issue at the same time.
I would give a try if I were you
Not sure about the validity of this link, but get a look and let us know :
Distribution: Solaris 11.4, Oracle Linux, Mint, Debian/WSL
Posts: 9,789
Rep:
Quote:
Originally Posted by manyrootsofallevil
I'm running on Solaris 10
Is command completion actually possible with korn shell?
...
command completion does work on my rhel6 box running ksh Version JM 93t+ 2010-06-21
I can't get the version in solaris, must be a different variable to KSH_VERSION or VERSION
The ksh version provided with Solaris 10 and older is ksh88 (the same that is found in most if not all other commercial Unixes). That version doesn't implement command completion and never will.
OpenSolaris / Solaris 11 Express is bundling ksh93t+ which has its feature.
If you need to stay with Solaris 10, you choices are either to build ksh93 from the source code, find an already built binary, or perhaps just use /usr/dt/bin/dtksh which is based on an quite older ksh93 release but nevertheless implements command completion.
The ksh version provided with Solaris 10 and older is ksh88 (the same that is found in most if not all other commercial Unixes). That version doesn't implement command completion and never will.
OpenSolaris / Solaris 11 Express is bundling ksh93t+ which has its feature.
If you need to stay with Solaris 10, you choices are either to build ksh93 from the source code, find an already built binary, or perhaps just use /usr/dt/bin/dtksh which is based on an quite older ksh93 release but nevertheless implements command completion.
I changed the shell to dtksh and lo and behold, command completion works.
thanks
I also found the shell version Version M-11/16/88i, which confirms your statement above (not that I was doubting you or anything )
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.