[Top][All Lists]

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

Re: set +o posix disables allowing tab as input

From: Chet Ramey
Subject: Re: set +o posix disables allowing tab as input
Date: Mon, 16 Jun 2014 12:03:51 -0400
User-agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.9; rv:24.0) Gecko/20100101 Thunderbird/24.5.0

On 6/13/14, 4:18 AM, Linda Walsh wrote:
> I have my tab key set to generate a tab key instead of doing auto complete
> and use ` for auto complete -- not ideal, but it works.
> I found a bug in this today.
> GNU bash, version 4.2.45(1)-release (x86_64-suse-linux-gnu)
> if I type in "set +o posix"
> to make sure posix mode is 'off',
> then 'tab' is no longer allowed as input.

You're a vi-mode user.  Posix specifies that tab is bound to self-insert
when editing in vi mode, but that's not the bash default.  So, bash changes
the default binding for tab to self-insert when enabling posix mode
(set -o posix), and inverts that, reverting to the default, when leaving
posix mode (set +o posix).

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

reply via email to

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