Mikel Ward wrote:
When I enter a command over multiple lines, e.g.

for f in *; do
    echo $f
done
<Enter>

Then I press <Up> to go back to that history entry, Ctrl+A takes me to
the start of the entire multi-line command, rather than to the
beginning of the "done" line, as I would expect.

Settings:
shopt cmdhist
cmdhist         on

Try it without this option enabled, since the behavior you're objecting
to is what this option is intended to provide.

Chet
--
``The lyf so short, the craft so long to lerne.'' - Chaucer

Chet Ramey, ITS, CWRU    [EMAIL PROTECTED]    http://cnswww.cns.cwru.edu/~chet/


Reply via email to