[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Tab auto-completion removes quotes from variables even when it shouldn't
From: |
Pedro Gimeno |
Subject: |
Tab auto-completion removes quotes from variables even when it shouldn't |
Date: |
Fri, 25 Jun 2021 16:53:13 +0200 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.3.0 |
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.
Test case:
$ mkdir 'a b'
$ touch 'a b'/c
$ i='a b'
$ ls "$i"/<press tab here>
After pressing tab, the last line becomes:
$ ls $i/c
When pressing enter, the expected result happens:
ls: cannot access 'a': No such file or directory
ls: cannot access 'b/c': No such file or directory
I expected quoted variables to preserve the quotes when auto-completing with
tab.
- Tab auto-completion removes quotes from variables even when it shouldn't,
Pedro Gimeno <=