1 |
On 10/24/05, Holly Bostick <motub@××××××.nl> wrote: |
2 |
> Mark Knecht schreef: |
3 |
> > Hi, On one machine of mine, and only one machine, bash completion is |
4 |
> > not working for my user account when I try to complete a path. I hit |
5 |
> > tab and nothing happens. Bash completion is working for files though. |
6 |
> > I can do bash completion in my home directory and get a list of |
7 |
> > files, but if I try to complete /usr/sr but hitting a tab it just |
8 |
> > sits and does nothing. |
9 |
> > |
10 |
> > It works fine for root. |
11 |
> > |
12 |
> > What turns this feature on for a user? I copied a good .bashrc file |
13 |
> > from a working machine over and logged back into the bad machine but |
14 |
> > that didn't fix it. |
15 |
> > |
16 |
> > man bash makes it look like it should be on by default. |
17 |
> > |
18 |
> > Thanks for the unix lesson. |
19 |
> > |
20 |
> > Cheers, Mark |
21 |
> |
22 |
> Yes, I have a similar problem, but bash-completion doesn't work |
23 |
> correctly for anybody (user or su root). |
24 |
> |
25 |
> I uncommented the bash completion command in both ~/.bashrcs long ago, |
26 |
> and at first the problem was only for root (which was weird enough); now |
27 |
> (what constitutes 'now' as opposed to 'previously' I don't know) if I |
28 |
> hit tab when filling in a path or a filename, as you said, nothing |
29 |
> happens; if I fill in the rest of the path manually, the file is not |
30 |
> found-- because my use of the TAB key has invisibly taken me up one |
31 |
> directory (where the file does not exist). When I hit enter, I find that |
32 |
> if I had started in /usr/local/src, I am now in /usr/local, for example. |
33 |
> |
34 |
> This occurs under various terminals (aterm, gnome-terminal, |
35 |
> multi-gnome-terminal, xterm), although bash-completion fails differently |
36 |
> under each of them (which is also weird). I know something has changed, |
37 |
> but not what. |
38 |
> |
39 |
> Although.... now that I'm looking into this (which I had not really |
40 |
> taken time to do, so I wasn't really 'worrying' about it as I had put |
41 |
> this annoyance on my secondary 'to-do/fix' list, despite the fact that |
42 |
> it's a major annoyance) I notice that I have both bash-completion and |
43 |
> bash-completion-config installed-- and the man |
44 |
> page for bash-completion-config says that the config files are in |
45 |
> /etc/bashcomp-configrc, if it exists, or $HOME/.bashcomp-configrc, if it |
46 |
> exists. |
47 |
> |
48 |
> So at least I probably need to check there first to see if |
49 |
> bash-completion has in fact been set, since there is no mention of |
50 |
> ~/.bashrc and perhaps those settings are now invalid, or in conflict. |
51 |
> |
52 |
> Something for you to check as well, Mark? |
53 |
> |
54 |
> Holly |
55 |
|
56 |
Holly, |
57 |
Interesting, but somewhat different than mine. What I'm finding |
58 |
this morning is that as a user it will complete some paths. For |
59 |
instance here is completes for a path in my directory: |
60 |
|
61 |
mark@gigastudio ~ $ pwd |
62 |
/home/mark |
63 |
mark@gigastudio ~ $ ls CODE/ |
64 |
xfst-0.4 xfst-0.4.tar.gz |
65 |
mark@gigastudio ~ $ cd CODE/xfst-0.4/ |
66 |
Makefile fst.o install-sh vst/ xfst |
67 |
README fstconfig.c jackvst.h vsti.c xfst.exe.so |
68 |
audiomaster.c fstinfofile.c jfst.c vsti.o |
69 |
audiomaster.o fstinfofile.o jfst.o vstinfo.c |
70 |
fst.c gtk.c readme.jack-fst vstwin.c |
71 |
fst.h gtk.o tags vstwin.o |
72 |
mark@gigastudio ~ $ cd CODE/xfst-0.4/vst |
73 |
vst/ vsti.c vsti.o vstinfo.c vstwin.c vstwin.o |
74 |
mark@gigastudio ~ $ cd CODE/xfst-0.4/vst |
75 |
mark@gigastudio ~/CODE/xfst-0.4/vst $ pwd |
76 |
/home/mark/CODE/xfst-0.4/vst |
77 |
mark@gigastudio ~/CODE/xfst-0.4/vst $ |
78 |
|
79 |
and for a file: |
80 |
|
81 |
mark@gigastudio ~ $ pwd |
82 |
/home/mark |
83 |
mark@gigastudio ~ $ ls CODE/xfst-0.4/ |
84 |
Makefile fst.o install-sh vst/ xfst |
85 |
README fstconfig.c jackvst.h vsti.c xfst.exe.so |
86 |
audiomaster.c fstinfofile.c jfst.c vsti.o |
87 |
audiomaster.o fstinfofile.o jfst.o vstinfo.c |
88 |
fst.c gtk.c readme.jack-fst vstwin.c |
89 |
fst.h gtk.o tags vstwin.o |
90 |
mark@gigastudio ~ $ ls CODE/xfst-0.4/vst |
91 |
vst/ vsti.c vsti.o vstinfo.c vstwin.c vstwin.o |
92 |
mark@gigastudio ~ $ ls CODE/xfst-0.4/vstinfo.c |
93 |
CODE/xfst-0.4/vstinfo.c |
94 |
mark@gigastudio ~ $ |
95 |
|
96 |
It works for hidden direcotries and files: |
97 |
|
98 |
mark@gigastudio ~ $ cd .wine/ |
99 |
dosdevices/ drive_c/ system.reg user.reg userdef.reg |
100 |
mark@gigastudio ~ $ cd .wine/drive_c/ |
101 |
My Documents/ Program Files/ windows/ |
102 |
mark@gigastudio ~ $ cd .wine/drive_c/windows/ |
103 |
Application Data/ fonts/ regedit.exe system32/ |
104 |
winebrowser.exe |
105 |
Start Menu/ inf/ rundll32.exe temp/ |
106 |
winhelp.exe |
107 |
_isenv31.ini notepad.exe system/ uninstall.exe |
108 |
winhlp32.exe |
109 |
command/ profiles/ system.ini win.ini |
110 |
mark@gigastudio ~ $ cd .wine/drive_c/windows/ |
111 |
|
112 |
|
113 |
However it will not complete for /usr, /bin or /var: |
114 |
|
115 |
mark@gigastudio ~ $ ls /us |
116 |
mark@gigastudio ~ $ ls /bi |
117 |
mark@gigastudio ~ $ ls /var |
118 |
|
119 |
This seems almost like a permissions issue. However I can cd /usr/src, |
120 |
I just cannot bash complete it: |
121 |
|
122 |
mark@gigastudio ~ $ cd /usr/src |
123 |
mark@gigastudio /usr/src $ ls |
124 |
linux linux-2.6.12-gentoo-r6 linux-2.6.14-rc5-rt5 |
125 |
linux-2.6.12-gentoo-r10 linux-2.6.13-gentoo-r3 patches |
126 |
mark@gigastudio /usr/src $ |
127 |
|
128 |
And indeed, I just found this item: |
129 |
|
130 |
mark@gigastudio / $ ls -la |
131 |
ls: .: Permission denied |
132 |
mark@gigastudio / $ |
133 |
|
134 |
|
135 |
But I do not see what's wrong yet: |
136 |
|
137 |
gigastudio / # ls -la |
138 |
total 76 |
139 |
d-wxr----t 18 root root 4096 Sep 6 12:46 . |
140 |
d-wxr----t 18 root root 4096 Sep 6 12:46 .. |
141 |
-rw------- 1 root root 1437 Sep 7 04:53 .bash_history |
142 |
drwxr-xr-x 2 root root 4096 Sep 7 08:09 bin |
143 |
drwxr-xr-x 2 root root 4096 Sep 7 08:06 boot |
144 |
drwxr-xr-x 14 root root 13520 Oct 24 08:53 dev |
145 |
drwxr-xr-x 54 root root 4096 Oct 24 08:53 etc |
146 |
drwxr-xr-x 4 root root 4096 Sep 8 01:10 home |
147 |
drwxr-xr-x 9 root root 4096 Oct 22 08:18 lib |
148 |
drwx------ 2 root root 16384 Sep 6 08:49 lost+found |
149 |
drwxr-xr-x 5 root root 4096 Sep 8 09:34 mnt |
150 |
drwxr-xr-x 2 root root 4096 Jul 26 10:11 opt |
151 |
dr-xr-xr-x 88 root root 0 Oct 24 08:53 proc |
152 |
drwx------ 11 root root 4096 Oct 23 14:17 root |
153 |
drwxr-xr-x 2 root root 4096 Oct 22 09:25 sbin |
154 |
drwxr-xr-x 10 root root 0 Oct 24 08:53 sys |
155 |
drwxrwxrwt 13 root root 4096 Oct 24 10:26 tmp |
156 |
drwxr-xr-x 16 root root 4096 Oct 23 14:01 usr |
157 |
drwxr-xr-x 13 root root 4096 Sep 8 03:08 var |
158 |
gigastudio / # |
159 |
|
160 |
gigastudio / # cat /etc/group | grep mark |
161 |
wheel:x:10:root,mark |
162 |
audio:x:18:mark |
163 |
video:x:27:root,mark |
164 |
games:x:35:mark |
165 |
users:x:100:games,mark |
166 |
realtime:x:600:mark |
167 |
gigastudio / # |
168 |
|
169 |
I do not seem to have any packages installed for this, as best I can |
170 |
tell so far. I do nothave the same /etc files as you: |
171 |
|
172 |
gigastudio / # ls -la /etc/bash* |
173 |
total 16 |
174 |
drwxr-xr-x 2 root root 4096 Oct 24 10:40 . |
175 |
drwxr-xr-x 54 root root 4096 Oct 24 08:53 .. |
176 |
-rw-r--r-- 1 root root 132 Jul 30 04:06 bash_logout |
177 |
-rw-r--r-- 1 root root 1627 Jul 30 04:06 bashrc |
178 |
gigastudio / # |
179 |
|
180 |
Strange problems! |
181 |
|
182 |
Thanks, |
183 |
Mark |
184 |
|
185 |
|
186 |
|
187 |
I do not see the issue (yet) where I end up one directory higher. I'll |
188 |
keep an eye out for that. |
189 |
|
190 |
-- |
191 |
gentoo-user@g.o mailing list |