[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: ctrl-w oddity on bash-4.4
From: |
Chet Ramey |
Subject: |
Re: ctrl-w oddity on bash-4.4 |
Date: |
Thu, 26 Oct 2017 10:04:54 -0400 |
User-agent: |
Mozilla/5.0 (Macintosh; Intel Mac OS X 10.12; rv:52.0) Gecko/20100101 Thunderbird/52.4.0 |
On 10/26/17 12:21 AM, Robert Elz wrote:
> Date: Wed, 25 Oct 2017 10:45:11 -0400
> From: Chet Ramey <chet.ramey@case.edu>
> Message-ID: <6751ad10-cccb-0467-a751-c5be8e7451cf@case.edu>
>
> | If you read the discussion in the thread I pointed to last night, `real'
> | vi supposedly does this kind of thing. I'm not enough of a vi user to
> | say one way or the other.
>
> In real vi, ^W (word kill) only works at all on text you have currently
> typed in insert mode, there is no concept of moving somewhere, entering
> insert mode, and then using ^W to delete backwards, that would be a
> totally foreign concept to a vi user.
OK. Posix doesn't make that distinction. If you're in insert mode, ^W
deletes a `word'. I assume it's more trying to emulate the behavior of
the tty driver than `real' vi. However, the word boundary characters are
(again, I assume) more like `real' vi than the ones the tty driver uses.
--
``The lyf so short, the craft so long to lerne.'' - Chaucer
``Ars longa, vita brevis'' - Hippocrates
Chet Ramey, UTech, CWRU chet@case.edu http://cnswww.cns.cwru.edu/~chet/
- Re: ctrl-w oddity on bash-4.4, (continued)