Path: utzoo!attcan!uunet!wyse!vsi1!ames!pasteur!ucbvax!tut.cis.ohio-state.edu!rutgers!att!mtuxo!rolls!argon!ebh From: ebh@argon.UUCP (Ed Horch) Newsgroups: comp.sources.d Subject: Re: Bourne Again Shell? Message-ID: <534@argon.UUCP> Date: 17 Mar 89 21:55:49 GMT References: <26563@teknowledge-vaxc.ARPA> <46100006@hcx3> <1491@vicom.COM> <544@galaxia.Newport.RI.US> <10659@stb.UUCP> Reply-To: ebh@argon.UUCP (Ed Horch) Organization: No Name Lasers, Highland Park, NJ Lines: 21 In article <10659@stb.UUCP> michael@stb.UUCP (Michael) writes: >Now, my turn: How do you combine multiple commands in the KSH history >mode? I don't know about vi mode, but in emacs mode it works exactly as you expect. Suppose you have "foo" and "bar" in your history file, and you want to make "foo | bar". Here's how you do it (pretend that _ is the cursor): TYPE SEE COMMENT ^Rfoo $ foo_ finds foo ^A $ _foo cursor is on top of 'f' ^K $ _ put "foo" in kill buffer ^Rbar $ bar_ finds bar ^A $ _bar cursor is on top of 'b' ^Y $ foo_bar yank "foo" from kill buffer | $ foo | _bar insert the rest; you're done -Ed Will the world *ever* decide what ^T should do?