1753872 Members
7377 Online
108809 Solutions
New Discussion юеВ

about csh under HP-UX

 
huomzh
Occasional Contributor

about csh under HP-UX

i can use command " set -o vi" or env
"EDITOR=vi" in ksh,but how can do the same is csh?
thanks.
mingzheng huo
I am a worm of software development.
4 REPLIES 4
linuxfan
Honored Contributor

Re: about csh under HP-UX

Hi,

I don't believe you can do "command line editing" in csh.

you can get the history of commands using "history"

Commands from the history can be recalled using the exclamation point. For example, !! repeats the previous command, !25 re-types command number 25 from the history, and !-2 re-types the second line previous to the current line.

You will have to use tcsh
(tcsh is C shell with file name completion, command line editing and other features such as enhanced variable modifiers )or ksh or bash or one of the many other shells which allows command line editing.

-HTH
Ramesh
They think they know but don't. At least I know I don't know - Socrates
Michael Tully
Honored Contributor

Re: about csh under HP-UX

Hi,

If you want command line completion 'tcsh' is the way to go. You can the already compiled version from the below link.

http://hpux.connect.org.uk/hppd/hpux/Shells/tcsh-6.10.00/

HTH
-Michael
Anyone for a Mutiny ?
T G Manikandan
Honored Contributor

Re: about csh under HP-UX

Hello,
Ramesh is right.
For command line completion use
root#set filec
for that.

Thanks
Santosh Nair_1
Honored Contributor

Re: about csh under HP-UX

Your best bet is to use tcsh, which is a much better csh alternative. It has featuers such as command editing, file/command completion and a bunch more:

http://www.tcsh.org

Or alternativerly you can use zsh or GNU's bash:

http://zsh.sunsite.dk
http://www.gnu.org/software/bash/bash.html

Or my favorite, stick with the posix shell (/usr/bin/sh on HPUX). It takes a little while getting used to, but has lots of nice features and its a standard part of the HPUX distribution.

-Santosh
Life is what's happening while you're busy making other plans