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. Chet -- ``The lyf so short, the craft so long to lerne.'' - Chaucer ``Ars longa, vita brevis'' - Hippocrates Chet Ramey, UTech, CWRU c...@case.edu http://tiswww.cwru.edu/~chet/