Operating System - HP-UX
1831406 Members
3726 Online
110025 Solutions
New Discussion

HISTORY COMMANDS WITH ARROW KEY NOT WORKING ON 11.31

 
cold
Frequent Advisor

HISTORY COMMANDS WITH ARROW KEY NOT WORKING ON 11.31

I have installed hpux 11.31 and In the .profile I am using following entries
export HISTFILE=/.sh_history
export HISTSIZE=100
set -o emacs
alias __A=^p
alias __B=^n
alias __C=^f
alias __D=^b
alias __O=^O
Now the problem is these settings are working fine on the server running B.11.23 but the same are not working on OS B.11.31
that I have did not correct?
3 REPLIES 3
OFC_EDM
Respected Contributor

Re: HISTORY COMMANDS WITH ARROW KEY NOT WORKING ON 11.31

Unless there's a compelling reason I suggest use bash as your shell to login.

I do that now and all those little gotchas seem to have gone away.

Still script in POSIX though.

The Devil is in the detail.
cold
Frequent Advisor

Re: HISTORY COMMANDS WITH ARROW KEY NOT WORKING ON 11.31

in the profile i am enteries
SHELL=/bin/bash
but did not help
Venkatesh BL
Honored Contributor

Re: HISTORY COMMANDS WITH ARROW KEY NOT WORKING ON 11.31

I think these aliases are 'shell' specific. For 'ksh' you need to specify this, I don't think this is required for bash.

Try this: Remove these aliases, login from another terminal, make sure you are on 'bash', now use the arrow keys.