On 8/22/08, Chet Ramey <[EMAIL PROTECTED]> wrote: > Good catch. The command executed is actually > > fc -e "${VISUAL:-${EDITOR:-emacs}}" > > It's the same command for vi and emacs editing modes, though the default > for vi editing mode is `vi' instead of `emacs'. The documentation needs > to be updated, and has for a while, since it's been this way since at > least bash-2.05. Seven years is a long time for this to go unnoticed.
hmm why not fixing the command instead ? VISUAL can be used to visualize a file, so can be set to 'less' for example. It shouldn't be used if you wand to edit. I think what is described in the man is fine. And I wanted to customize FCEDIT to launch emacs in sh-mode, something I can't do with current command setting. -- Francis