Re: Tab completion breaks for tilde-paths with filenames containing space
On 1/14/15 10:52 AM, Dave Rutherford wrote: On Wed, Jan 14, 2015 at 10:14 AM, Eduardo A. Bustamante López dual...@gmail.com wrote: Can you test with: bash --norc --noprofile -i It is working in this case. The difference seems to be in direxpand. Thanks, that was the key. This will be fixed in the next version of bash and readline. Chet -- ``The lyf so short, the craft so long to lerne.'' - Chaucer ``Ars longa, vita brevis'' - Hippocrates Chet Ramey, ITS, CWRUc...@case.eduhttp://cnswww.cns.cwru.edu/~chet/
Re: Tab completion breaks for tilde-paths with filenames containing space
Dave Rutherford d...@evilpettingzoo.com writes: On Wed, Jan 14, 2015 at 9:45 AM, Eduardo A. Bustamante López dual...@gmail.com wrote: Are you using any supplementary programs, like bash-completion? I don't think so, unless Debian turned it on for me. Run complete -p to find out. Andreas. -- Andreas Schwab, SUSE Labs, sch...@suse.de GPG Key fingerprint = 0196 BAD8 1CE9 1970 F4BE 1748 E4D4 88E3 0EEA B9D7 And now for something completely different.
Re: Tab completion breaks for tilde-paths with filenames containing space
On Wed, Jan 14, 2015 at 09:55:33AM -0500, Dave Rutherford wrote: [...] I don't think so, unless Debian turned it on for me. Can you test with: bash --norc --noprofile -i Note that without a\ a.odt there, $ ls ~/a/aTAB[completes to a\ a.txt] but $ ls ~/a/a\ TAB [does not complete] [dualbus@dualbus ~]$ ls a a a.odt a a.txt [dualbus@dualbus ~]$ ls ~/a/a\ TAB [completes to:] [dualbus@dualbus ~]$ ls ~/a/a\ a. if I do TABTAB: [dualbus@dualbus ~]$ ls ~/a/a\ a. a a.odt a a.txt [dualbus@dualbus ~]$ ls ~/a/a\ a. So, it's working there.
Re: Tab completion breaks for tilde-paths with filenames containing space
On Wed, Jan 14, 2015 at 9:45 AM, Eduardo A. Bustamante López dual...@gmail.com wrote: On Wed, Jan 14, 2015 at 09:33:31AM -0500, d...@evilpettingzoo.com wrote: [...] Bash Version: 4.2 Patch Level: 37 Also tested on 4.3.30 [dualbus@dualbus ~]$ mkdir a; a/a\ a.txt You didn't create any ambiguity there. It seems to be a partial requirement. [dualbus@dualbus ~]$ echo ~/a/aTAB [completes] [dualbus@dualbus ~]$ echo ~/a/a\ a.txt /home/dualbus/a/a a.txt [dualbus@dualbus ~]$ echo ~/a/a\ aTAB [completes] [dualbus@dualbus ~]$ echo ~/a/a\ a.txt /home/dualbus/a/a a.txt Are you using any supplementary programs, like bash-completion? I don't think so, unless Debian turned it on for me. Note that without a\ a.odt there, $ ls ~/a/aTAB[completes to a\ a.txt] but $ ls ~/a/a\ TAB [does not complete]
Re: Tab completion breaks for tilde-paths with filenames containing space
On Wed, Jan 14, 2015 at 09:33:31AM -0500, d...@evilpettingzoo.com wrote: [...] Bash Version: 4.2 Patch Level: 37 [dualbus@dualbus ~]$ mkdir a; a/a\ a.txt [dualbus@dualbus ~]$ echo ~/a/aTAB [completes] [dualbus@dualbus ~]$ echo ~/a/a\ a.txt /home/dualbus/a/a a.txt [dualbus@dualbus ~]$ echo ~/a/a\ aTAB [completes] [dualbus@dualbus ~]$ echo ~/a/a\ a.txt /home/dualbus/a/a a.txt [dualbus@dualbus ~]$ echo $BASH_VERSION 4.2.37(1)-release Are you using any supplementary programs, like bash-completion?
Re: Tab completion breaks for tilde-paths with filenames containing space
On 1/14/15 9:33 AM, d...@evilpettingzoo.com wrote: Bash Version: 4.2 Patch Level: 37 Release Status: release Description: Pathnames starting with tilde, combined with filenames containing space, only partially tab-complete. I can't reproduce this using bash-4.2.53 or bash-4.3.33, so I'm going to assume it's an artifact of bash-completion. -- ``The lyf so short, the craft so long to lerne.'' - Chaucer ``Ars longa, vita brevis'' - Hippocrates Chet Ramey, ITS, CWRUc...@case.eduhttp://cnswww.cns.cwru.edu/~chet/
Re: Tab completion breaks for tilde-paths with filenames containing space
On Wed, Jan 14, 2015 at 10:14 AM, Eduardo A. Bustamante López dual...@gmail.com wrote: Can you test with: bash --norc --noprofile -i It is working in this case. The difference seems to be in direxpand. $ shopt -s direxpand; shopt direxpand direxpand on $ vi ~/a/a\ TABTAB[nothing] $ shopt -u direxpand; shopt direxpand direxpand off $ vi ~/a/a\ TAB [expands to] $ vi ~/a/a\ a.TABTAB a a.odt a a.txt Is this expected?