[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Tab auto-completion removes quotes from variables even when it shoul
From: |
Chet Ramey |
Subject: |
Re: Tab auto-completion removes quotes from variables even when it shouldn't |
Date: |
Fri, 25 Jun 2021 14:29:21 -0400 |
User-agent: |
Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:78.0) Gecko/20100101 Thunderbird/78.11.0 |
On 6/25/21 10:53 AM, Pedro Gimeno wrote:
Bash Version: 4.4
Patch Level: 12
Release Status: release
Tested also in the last version from this unofficial mirror:
https://github.com/bminor/bash so I guess it's still a problem.
Tab auto-completion removes quotes from variables even when it shouldn't.
Thanks for the report. This is a known issue for which I haven't decided on
an acceptable solution. The interface between readline and the calling
application (in this case, bash) makes it kind of clumsy.
You can work around it by setting the `direxpand' shell option, which has
the effect of expanding variables in the directory name and the side effect
of quoting them.
Chet
--
``The lyf so short, the craft so long to lerne.'' - Chaucer
``Ars longa, vita brevis'' - Hippocrates
Chet Ramey, UTech, CWRU chet@case.edu http://tiswww.cwru.edu/~chet/