Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!usc!julius.cs.uiuc.edu!ux1.cso.uiuc.edu!uiucdcs!carroll From: carroll@cs.uiuc.edu (Alan M. Carroll) Newsgroups: comp.unix.shell Subject: Re: csh question (and ksh port maybe) Message-ID: <1990Nov9.224300.14375@ux1.cso.uiuc.edu> Date: 9 Nov 90 22:43:00 GMT References: <45969@sequent.UUCP> Sender: news@ux1.cso.uiuc.edu (News) Reply-To: carroll@cs.uiuc.edu (Alan M. Carroll) Organization: Technophiles Inc. - Engineers with Attitude Lines: 19 In article <45969@sequent.UUCP>, calvin@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