csh question (and ksh port maybe)

Alan M. Carroll carroll at cs.uiuc.edu
Sat Nov 10 09:43:00 AEST 1990


In article <45969 at sequent.UUCP>, calvin at sequent.sequent.com (Calvin Goodrich) writes:
>  :e :h :t :r :q :x :gh :gt :gr
>  in csh? 
> 
> next question: do these things have an equivalent in ksh?

No. However, ksh shell has much more powerful mechanisms for doing the equivalent
thing. You can enable a 1 line VI editing mode in ksh using
set -o vi
which then allows you to use standard vi editing commands to modify the
command line (press ESCAPE to enter editing mode). I find this far easier to
use then trying to remember which csh : operator is the right one. Also, you
can regexp search your history (!) and repeat the search (just like vi) if
the first one you find isn't what you wanted. This makes searching for the last
command that referenced file "bob" easy.
-- 
Alan M. Carroll                Barbara/Marilyn in '92 :
Epoch Development Team          + This time, why not choose the better halves?
CS Grad / U of Ill @ Urbana    ...{ucbvax,pur-ee,convex}!cs.uiuc.edu!carroll



More information about the Comp.unix.shell mailing list