It is currently Sat, 04 Dec 2021 18:31:54 GMT



 
Author Message
 command line editting
I am working on an HP-UX 11.00 system, and trying to set command line
editting in the csh, I tried set editmode=vi but this doesn't work. In
the ksh I do set -o vi, I can then use esc k and j to move up and down
the history list. I would like to do the smae in the csh.

Any suggestions? (Yes, I would ditch the csh but all the users use it)

Mark.

Sent via Deja.com
http://www.**-**.com/



 Mon, 21 Jul 2003 22:17:34 GMT   
 command line editting

I don't think you can in normal csh, since it is a functionality of
the shell and 'csh' standard shell doesn't have either 'vi' or 'emacs'
editting facilities.

csh history editting is done via special macro tokens, which begin
with the '!' character.

man csh, and read the section called 'history substitution'

Bye,

L



 Mon, 21 Jul 2003 23:39:00 GMT   
 command line editting

None of the Csh's I've seen support this.

The tcsh shell, however, is supposed to though I don't have any
experience with it.

--
echo Nlhel...@SPsonic.netAM | tr -d 'A-Z'



 Tue, 22 Jul 2003 00:21:49 GMT   
 command line editting
Humm.. don't know if the csh has command line editing.  I do know you can
use ! and !! to refer to commands in your history.  Also - you can use ^ ^
to correct speeling errors.  Check the man page for csh.  Iused to be a csh
user then had to switch to ksh...  I really miss the ! and !! .....


 Tue, 22 Jul 2003 02:52:16 GMT   
 command line editting
Why do you miss them? You can use the ksh defined alias 'r' - which is
defined as:

alias r='fc -e - '

I believe the r alias is defined as a standard ksh alias
like 'autoload', 'integer', etc. Its very similar to !/!! in concept.
Refer to 'man ksh' and the section on 'fc'.

Kevin

In article <95cba1$7k...@newsfeed.norlight.net>,
  "John Meier" <john.me...@retek.com> wrote:
news:95br5l$k0v$1@nnrp1.deja.com...

Sent via Deja.com
http://www.deja.com/



 Tue, 22 Jul 2003 07:18:30 GMT   
 
   [ 5 post ] 

Similar Threads

1. Editting the intro line in TELNET

2. Adding header lines using command line mail program

3. Vi command to insert at the begin of a line for lines in a file

4. what sed command to print the first line and the last line

5. Question about reading the output of a command line by line

6. e-mail subject line and text in single command line

7. command line commands

8. From field incorrect when using Mail command from Command Line

9. RE : DIFFICULT: Can't execute system command from FVWM, but can from the command line

10. Sending commands to the command line


 
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group.
Designed by ST Software