[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Ctrl+A with multi-line history

From: Chet Ramey
Subject: Re: Ctrl+A with multi-line history
Date: Sun, 07 Sep 2008 22:59:08 -0400
User-agent: Thunderbird (Macintosh/20080707)

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

for f in *; do
    echo $f

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.

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.

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

Chet Ramey, ITS, CWRU    address@hidden    http://cnswww.cns.cwru.edu/~chet/

reply via email to

[Prev in Thread] Current Thread [Next in Thread]