[Top][All Lists]

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

Re: [PATCH] Switch vi-insert TAB binding only for the default binding

From: Chet Ramey
Subject: Re: [PATCH] Switch vi-insert TAB binding only for the default binding
Date: Sun, 17 Feb 2019 14:49:37 -0500
User-agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.14; rv:60.0) Gecko/20100101 Thunderbird/60.5.0

On 2/15/19 6:58 PM, Koichi Murase wrote:
>> There is a third option: turning posix mode on saves the old binding
>> for TAB; turning it off restores it. That, combined with a check of
>> whether or not the binding was still TAB:self-insert, should handle
>> both cases.
> Thank you for your reply. I am fine with the third option as far as
> `local POSIXLY_CORRECT' safely works. 

I believe it does.

> Actually I initially thought
> about that option, but I felt it is a little bit inconsistent because
> with that option only the binding for TAB becomes POSIX compliant, and
> user-defined bindings for all the other keys/keymaps are kept
> user-defined in POSIX mode. 

Yes. Bash has to assume some things, and only restores the key bindings
that it itself changes. Users can modify anything at their own discretion;
bash only claims POSIX conformance if users don't modify the bindings.


``The lyf so short, the craft so long to lerne.'' - Chaucer
                 ``Ars longa, vita brevis'' - Hippocrates
Chet Ramey, UTech, CWRU    address@hidden    http://tiswww.cwru.edu/~chet/

reply via email to

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