bug-bash
[Top][All Lists]
Advanced

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

Re: shell-forward-word and shell-backward-word not symmetric


From: Chet Ramey
Subject: Re: shell-forward-word and shell-backward-word not symmetric
Date: Sat, 06 Nov 2010 16:15:35 -0400
User-agent: Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.6; en-US; rv:1.9.2.8) Gecko/20100802 Lightning/1.0b2 Thunderbird/3.1.2

On 10/31/10 8:08 AM, Daniel Colascione wrote:
> Consider the string "word1 word2 word3 word4 word5" with point just
> before "word3". In bash-4.1, shell-backword-word moves point to the
> beginning of the string, but shell-forward-word just advances to the end
> of word4. The two functions really should be symmetric --- either both
> should break out of quoted strings, or neither should.

Thanks for the report.  This will be fixed in bash-4.2.

> The latter
> behavior is probably better, and it's more consistent with Emacs.

If you want the latter behavior, why use shell-forward-word?  Just stick
with forward-word and you'll get the emacs behavior.

Chet

-- 
``The lyf so short, the craft so long to lerne.'' - Chaucer
                 ``Ars longa, vita brevis'' - Hippocrates
Chet Ramey, ITS, CWRU    chet@case.edu    http://cnswww.cns.cwru.edu/~chet/



reply via email to

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