Computing.Net > Forums > Unix > set -o emacs interfere w/ set -o vi

Computing.Net: Over 1,000,000 posts about all things technology related! Over 90% answered within 24 hours! Click here to sign up now, it's free!

set -o emacs interfere w/ set -o vi

Reply to Message Icon

Original Message
Name: Tony Pham
Date: July 17, 2003 at 13:27:28 Pacific
Subject: set -o emacs interfere w/ set -o vi
OS: solaris 7
CPU/Ram: unknown
Comment:

1. on HP-UX using K shell, the SA can set some stuff to allow .history to be read, so when the is pressed, it will find the matching file or directory and complete your typing.

2. In Solaris using K shell, you can perform same function by using "set -o emacs"; however, do so will void "set -o vi" and not allow you to recall commands by using " k". set "autowrite" does not work.

3. in Solaris, using C-shell, use can use "set file C" to perform the same function. However, I do not want to use C shell.

All above steps have been tested. How do you get the to fill the string, in K shell, on Solaris?

Thanks much. Tony.


Report Offensive Message For Removal


Response Number 1
Name: WilliamRobertson
Date: July 17, 2003 at 16:49:21 Pacific
Reply: (edit)

> However, I do not want to use C shell.

Me neither!

In emacs mode, try Ctrl-P to get the previous command line.

Each shell has its own set of commands for command line history, e.g. tcsh and zsh use the up & down arrow keys, and the tab character for autocompletion. Try man ksh, man csh, etc.


Report Offensive Follow Up For Removal

Response Number 2
Name: WilliamRobertson
Date: July 20, 2003 at 06:20:38 Pacific
Reply: (edit)

...or stick with "set -o vi" and Ctrl-K. Are you saying
that doesn't work for you on Solaris? It should work.


Report Offensive Follow Up For Removal

Response Number 3
Name: Tony Pham
Date: July 22, 2003 at 12:44:37 Pacific
Reply: (edit)

William,

It works.

Thanks for your help!


Report Offensive Follow Up For Removal







Post Locked

This post is quite old and has been locked from receiving new replies. Please create a new posting instead.


Go to Unix Forum Home








Do you have your own blog?

Yes
No
I did before
I will soon


View Results

Poll Finishes In 2 Days.
Discuss in The Lounge
Poll History




Data Recovery Software