Gentoo Archives: gentoo-user

From: felix@×××××××.com
To: gentoo-user@l.g.o
Subject: Re: [gentoo-user] Bash completion annoyance: escapes directory variables.
Date: Sat, 17 Jan 2009 17:34:06
Message-Id: 20090117173348.GA32517@crowfix.com
In Reply to: Re: [gentoo-user] Bash completion annoyance: escapes directory variables. by Stroller
1 On Sat, Jan 17, 2009 at 03:27:04PM +0000, Stroller wrote:
2 >
3 > On 17 Jan 2009, at 13:23, Jean-Baptiste Mestelan wrote:
4 >> ...
5 >> Now, I am unsure whether this is a feature, but:
6 >> when I tab-complete 'cd ' followed an environment variable, bash
7 >> insists on escaping this variable.
8 >>
9 >> ex: cd $<TAB> -> cd \$
10 >> Which means I end up typing for example
11 >> # cd \$DOC
12 >> and this is not resolved right.
13 >>
14 >> If the variable path is not preceded by 'cd ' , bash completes it OK,
15 >> without escaping them.
16 >
17 > A system here does the same thing, another across town behaves "correctly".
18 >
19 > (I don't actually have $DOC set on either, but `cd /` and then use
20 > autocomplete to `cd $HOME`, which is set.)
21 >
22 > I don't know much about this, but I wonder if it may be related to some of
23 > Gentoo's 3rd-party Bash-completion features?
24
25 I have the same problem, and it also won't tab complete file names
26 inside back quotes as it used to. If I have /tmp/fix-me-now, this
27 will simply beep. It used to work. I have gotten so used to gentoo
28 enhancements screwing up things like this that I won't waste time
29 filing bug reports or whining on the mailing liost until it has gone
30 several weeks without being fixed. I figure sooner or later some dev
31 will notice it without haviung to ignore my whinings in the mean time.
32
33 $ emacs `cat /tmp/fix[TAB]
34
35 --
36 ... _._. ._ ._. . _._. ._. ___ .__ ._. . .__. ._ .. ._.
37 Felix Finch: scarecrow repairman & rocket surgeon / felix@×××××××.com
38 GPG = E987 4493 C860 246C 3B1E 6477 7838 76E9 182E 8151 ITAR license #4933
39 I've found a solution to Fermat's Last Theorem but I see I've run out of room o