>I've been working in an HP environment for a few years and stumbled
>across a great utility called ied.
>Basically, it lets you cycle through previous commands and edit
>them, if necessary (using vi-like commands) of any command-driven
>program (such as ftp) by specifying
> $ ied executable
>I've recently moved to a Solaris environment and have found no
>such equivalent. My understanding (which could be wrong) is that
>ied is HP proprietary and hence I cannot compile it on Solaris.
All you need to do is make sure you're using the Korn shell and then
type "set -o vi" to turn on vi-like editing or "set -o emacs" to turn
on emacs-like editing.
Korn shell also supports the "fc" command, which lets you actually run
a real editor on the previous command (among other things). This is
great if you build a big while loop or pipeline and mess it up slightly
because you can edit it in a real editor.
For more info, do:
man fc
man ksh
Contact your system administrator to have your shell changed. If you
are the system administrator, you might be able to use
"usermod -s /bin/ksh username".
- Logan, who wonders what was so bad about "chsh" and why it's gone.