[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Autocompletion problems with nounset and arrays
From: |
Chet Ramey |
Subject: |
Re: Autocompletion problems with nounset and arrays |
Date: |
Sun, 1 May 2016 18:07:56 -0400 |
User-agent: |
Mozilla/5.0 (Macintosh; Intel Mac OS X 10.11; rv:45.0) Gecko/20100101 Thunderbird/45.0 |
On 5/1/16 2:10 PM, Eric Pruitt wrote:
> On Sun, May 01, 2016 at 03:54:16AM -0400, Grisha Levit wrote:
>> Does the issue go away if you do a "bind 'set colored-stats off"' ?
>
> No. That already defaults to "off", and I don't override it. I ran the
> "bind" command anyway, and it didn't make a difference.
It's not directly related to colored stats, and it only is a problem in
bash-4.3/readline-6.3. Readline-6.3 has a stat hook that it calls to
allow the application to expand completed filenames before it calls stat,
so you can complete a variable name that expands to a directory and have
a slash appended. You can get around it by turning off all stat-related
variables, which are probably already off, and disabling mark-directories.
You might discover that disabling appending a slash to completed
directories is too high a price to pay.
--
``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/