Operating System - HP-UX
1752781 Members
6585 Online
108789 Solutions
New Discussion юеВ

Re: command line editing in CSH shell

 
R.SRIDHAR
Occasional Advisor

command line editing in CSH shell

Hi
Can any help me on how to do command line edit in CSH shell
4 REPLIES 4
James R. Ferguson
Acclaimed Contributor

Re: command line editing in CSH shell

HI;

Begin by not using the C-shell. See:

http://www.faqs.org/faqs/unix-faq/shell/csh-whynot/

Regards!

...JRF...
Peter Nikitka
Honored Contributor

Re: command line editing in CSH shell

Hi,

the old pure/poor CSH does not contain such a feature.
Use the tcsh instead:

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

Per default you can use emacs shortcuts; you can use vi-style edit mode after
setenv TSC_KEYBINDING vi

mfG Peter
The Universe is a pretty big place, it's bigger than anything anyone has ever dreamed of before. So if it's just us, seems like an awful waste of space, right? Jodie Foster in "Contact"
Ismail Azad
Esteemed Contributor

Re: command line editing in CSH shell

Hi Sridhar,

Well --command line editting-- and --restricted shells-- are said to be two features not supported on C which are supported on POSIX. Well command line editting is typically not a feature of a C shell.

Regards
Ismail Azad
Read, read and read... Then read again until you read "between the lines".....
Dennis Handly
Acclaimed Contributor

Re: command line editing in CSH shell

Stay away, far away from the scummy C shell. The lack of editing on the command line soured me forever on csh.

Unless you use tcsh, csh has only sed style editing of the previous commands. And people usually give up and use cut&paste for corrections.