Operating System - Tru64 Unix
1748223 Members
4657 Online
108759 Solutions
New Discussion юеВ

simple question of back history

 
admin1979
Super Advisor

simple question of back history


Hello,

How do you turn on the feature with which we can scroll through the previous commands by using UP ARROW Key?

Thanx,
admin
7 REPLIES 7
Steven Schweda
Honored Contributor

Re: simple question of back history

Which is your shell? (Does it offer that
feature?)

man
admin1979
Super Advisor

Re: simple question of back history

Its a KSH shell. I am going through the man ksh now.
Steven Schweda
Honored Contributor

Re: simple question of back history

I don't know about ksh. GNU "bash" can do
it.

http://www.gnu.org/software/bash/
cnb
Honored Contributor

Re: simple question of back history


For ksh I use:

# set -o emacs

Works just like VMS :-)

Rgds,
admin1979
Super Advisor

Re: simple question of back history

That command did not work.
cnb
Honored Contributor

Re: simple question of back history

>"That command did not work."

Not very descriptive.

Did you get an error?


Maybe you need to change your .profile?

Ours looks like this:

# @(#)$RCSfile: .profile.sh,v $ $Revision: 1.1.4.3 $ (DEC) $Date: 1999/03/30 20:14:46 $

if [ ! "$DT" ]; then
stty dec crt new
fi
PATH=/sbin:/usr/sbin:/usr/bin:/usr/ccs/bin:/usr/bin/X11:/usr/local
export PATH
set -o emacs
PS1=`hostname`':$PWD> '
export PS1


if [ ! -f /usr/var/checklist.setup -a ! -f /usr/var/setup.notice ]; then
if [ -x /usr/sbin/setup -a "$DISPLAY" = "" ]; then
if [ "$TERM" = "" ]; then
TERM=vt100
export TERM
echo "** "
echo "** Your terminal type is unknown and is being set to a default of \"VT100\""
echo "** "
echo "\n\nPress RETURN to start system setup or Control-C to exit to shell."
read USER_INPUT
fi
date > /usr/var/setup.notice
/usr/sbin/setup
fi
fi
Server4:/>

We have several V5.1B-4 systems here and '# set -o emacs' works just fine for us.


Rgds,


admin1979
Super Advisor

Re: simple question of back history

As mentioned above.