telnet up-arrow command history
I use SUSE 9.2 and and in my console, if I hit the up arrow button it will cycle through my command history so I can retrieve and re-execute an older command. However, when I telnet into an aix box, I can't keep this same functionality. Is there a way to configure the telnet session to do this?
|
'set -o emacs'
|
This isn't something that telnet controls. It's a function of the shell you're using. You need to man history on the AIX box to see how the shell it uses deals with history, and possible man <loginShell>, if history doesn't answer your question (echo $SHELL will print out your shell).
|
true, just assumed it was ksh, due to it being default for AIX.
|
I was being intentionally vague. I have no idea what AIX uses for it's default shell. I've not had a shell on an AIX box since before version 4.1.3, and I was typing my reply when you posted yours. :D
|
our aix box does use ksh for the shell. So I added the line set -o emacs to the .profile. I exited and re-entered. However, the up arrow still does not work.
|
what is the output of 'set' by itself?
|
Here's the output:
allexport off bgnice on emacs off errexit off gmacs off ignoreeof off interactive on keyword off markdirs off monitor on noexec off noclobber off noglob off nolog off notify off nounset off privileged off restricted off trackall off verbose off vi off viraw off xtrace off |
In the listing below, emacs is "off" ... you can try "set -o emacs on"
Also, give it a try in the shell (instead of '.profile')...and see if it works... Quote:
|
All times are GMT -5. The time now is 04:10 AM. |