Operating System - HP-UX
1753519 Members
5520 Online
108795 Solutions
New Discussion юеВ

csh ESC-K not working issue

 
SOLVED
Go to solution
Caroline_14
New Member

csh ESC-K not working issue

Hi,

I've searched all afternoon for the answer to this, but I just can't figure it out.

When I use the csh shell on HP-UX (using WRQ Reflection for HP to get onto the system), I can't use ESC-k (or the up arrow - this just moves the cursor up one line) for going through my command history.

Yet when I type in 'sh' to use the plain sh shell, ESC-k is working again.

My env is set up so vi is my editor. I don't know what I'm doing wrong with my shell.

Can anyone help?

(What I'd REALLY love to do is to get the up arrow working for going back through my command history, and using TAB instead of ESC-ESC for file name completion. I really wish tcsh was installed...)

Thank you,

Caroline...

6 REPLIES 6
H.Merijn Brand (procura
Honored Contributor
Solution

Re: csh ESC-K not working issue

And why don't you install tcsh then?

Available precompiled from my site:

http://mirrors.develooper.com/hpux/tcsh-6.13.00-pa1.1
http://mirrors.develooper.com/hpux/tcsh-6.13.05-11.00-pa2.0
http://mirrors.develooper.com/hpux/tcsh-6.13.05-11.11-elf64

just fetch the one that fits your OS/Arch and mv the file to an appropriate bin directory in your $PATH

Enjoy, Have FUN! H.Merijn
Enjoy, Have FUN! H.Merijn
Muthukumar_5
Honored Contributor

Re: csh ESC-K not working issue

You may not use esc + k in csh. You've to use !! or ! !?str? like that.

Refer history man page in cshell. It will help you out.

hth.
Easy to suggest when don't know about the problem!
Arunvijai_4
Honored Contributor

Re: csh ESC-K not working issue

http://monkey.org/openbsd/archive/misc/0312/msg00657.html
will give more information.

-Arun
"A ship in the harbor is safe, but that is not what ships are built for"
Caroline_14
New Member

Re: csh ESC-K not working issue

Thank you all for your replies!

procura, sorry, I've never installed anything on a system before, so could you be a little more specific with the instructions of where the file is to go, and what exactly I'm meant to do with it? ^^;

The work admin people in the US refuse to install it for me ("it's not supported by HP!" is their excuse), so I'm on my own.
Arunvijai_4
Honored Contributor

Re: csh ESC-K not working issue

You can install BASH though, Its supported by HP. http://h20293.www2.hp.com/portal/swdepot/displayProductInfo.do?productNumber=HPUXIEXP1123

http://h20293.www2.hp.com/portal/swdepot/displayProductInfo.do?productNumber=B9891AA


If you wish to know where the files will go,
# swlist -l file -s

-Arun
"A ship in the harbor is safe, but that is not what ships are built for"
H.Merijn Brand (procura
Honored Contributor

Re: csh ESC-K not working issue

Caroline, just fetch the file that matches you OS

e.g. if you are on HP-UX 11.00

caroline > cd
caroline > mkdir bin
caroline > cd bin
caroline > wget http://mirrors.develooper.com/hpux/tcsh-6.13.05-11.00-pa2.0
caroline > chmod 755 tcsh*
caroline > ln -s tcsh-6.13.05-11.00-pa2.0 tcsh
caroline > setenv PATH $PATH"":~/bin
caroline > rehash
caroline > tcsh

If you do not have wget, fetch it BINARY in a different way (Opera, Firefox, Mozilla, IE) and ftp it (in binary mode) to the HP-UX machine.

Adding ~/bin to $PATH in your ~/.cshrc won't hurt

Enjoy, Have FUN! H.Merijn
Enjoy, Have FUN! H.Merijn