On Tue, Oct 26, 2010 at 10:02:00PM +0800, Aaron Lewis wrote: > Hi, > Suppose last command was "cd cd" , and i've remembered that it could be > replaced to "ls ls" simply with "^cd^ls^" , but only first entry was > replaced , thus i finally got "ls cd" > > But i want "ls ls" , anyway to work it out ? > > -- > Aaron >
For ksh, look at the fc builtin. Use it to execute an editor (by default, ed), then edit away.

