Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!uwm.edu!uwvax!margay.cs.wisc.edu!dws From: dws@margay.cs.wisc.edu (DaviD W. Sanderson) Newsgroups: comp.unix.shell Subject: Re: Korn shell emulation of Csh's !? ??? Message-ID: <1991Jan29.015425.6714@spool.cs.wisc.edu> Date: 29 Jan 91 01:54:25 GMT References: <16554@ogicse.ogi.edu> Sender: news@spool.cs.wisc.edu (The News) Distribution: na Organization: U of Wisconsin CS Dept Lines: 25 In article <16554@ogicse.ogi.edu> morgan@ogicse.cse.ogi.edu (Clark O. Morgan) writes: >I've recently switched over to Korn shell from Csh and am quite happy. >However, I dearly miss the Csh !? history recall feature (which permits >commands to be recalled by "words" anywhere in a command string, not >just at the beginning of the command). You can put arbitrary words from your previous command into the current command with the underscore command in vi mode. The man page says: [count]_ Causes the count word of the previous command to be appended and input mode entered. The last word is used if count is omitted. So to recall the second word of the previous command, you can say 2_ and continue typing. -- ___ / __\ U N S H I N E DaviD W. Sanderson | | | I N E dws@cs.wisc.edu _____| | |_____ ________ \ / \ |__/ /////__ Fusion Powered Locomotives Made to Order \____/ \__|_/ \\\\\______ (TARDIS model available at extra cost)