| View previous topic :: View next topic |
| Author |
Message |
redbyte n00b

Joined: 10 Feb 2005 Posts: 11
|
Posted: Sun Apr 24, 2005 11:53 am Post subject: Tab completion portage problem |
|
|
Hi, bash-completion works perfectly. But i have some problems with emerge.
Example:
# emerge foo[TAB]bash: cd: ": Datei oder Verzeichnis nicht gefunden
bash: cd: ": Datei oder Verzeichnis nicht gefunden
It only works when i hit tab 2 or 3 times...
It really works on other tings...
bash-completion-20050121-r7 is installed.
bash.rc:
[ -f /etc/profile.d/bash-completion ] && source /etc/profile.d/bash-completion
Any ideas? |
|
| Back to top |
|
 |
moocha Watchman

Joined: 21 Oct 2003 Posts: 5722
|
Posted: Sun Apr 24, 2005 1:10 pm Post subject: |
|
|
MAke sure that root's /etc/passwd entry is exactly | Code: | | root:x:0:0:root:/root:/bin/bash | and that no other accounts with UID zero are present. _________________ Military Commissions Act of 2006: http://tinyurl.com/jrcto
"Those who would give up essential liberty to purchase a little temporary safety deserve neither liberty nor safety."
-- attributed to Benjamin Franklin |
|
| Back to top |
|
 |
redbyte n00b

Joined: 10 Feb 2005 Posts: 11
|
Posted: Sun Apr 24, 2005 1:34 pm Post subject: |
|
|
| moocha wrote: | MAke sure that root's /etc/passwd entry is exactly | Code: | | root:x:0:0:root:/root:/bin/bash | and that no other accounts with UID zero are present. |
root:x:0:0:root:/root:/bin/bash
Hm?!  |
|
| Back to top |
|
 |
moocha Watchman

Joined: 21 Oct 2003 Posts: 5722
|
Posted: Sun Apr 24, 2005 1:36 pm Post subject: |
|
|
Okay, so that's not it.
Does it work if you cd into some random directory first, not in the directory where you get the error? Such as in /usr instead of in root's home? I'm thinking along the lines of there being a weird file name in that directory, for example a file named ", and that confuses bash-completion. _________________ Military Commissions Act of 2006: http://tinyurl.com/jrcto
"Those who would give up essential liberty to purchase a little temporary safety deserve neither liberty nor safety."
-- attributed to Benjamin Franklin |
|
| Back to top |
|
 |
redbyte n00b

Joined: 10 Feb 2005 Posts: 11
|
Posted: Wed Apr 27, 2005 11:53 pm Post subject: |
|
|
| It doestn matter in which directory i am. Mh but it works a far months ago - after some update i stops working mh |
|
| Back to top |
|
 |
moocha Watchman

Joined: 21 Oct 2003 Posts: 5722
|
Posted: Thu Apr 28, 2005 12:17 am Post subject: |
|
|
Did you let etc-update or dispatch-conf overwrite /etc/bash-completion? If not, do that and re-source /etc/profile.
If that still doesn't work, just downgrade it and mask out all non-working versions. _________________ Military Commissions Act of 2006: http://tinyurl.com/jrcto
"Those who would give up essential liberty to purchase a little temporary safety deserve neither liberty nor safety."
-- attributed to Benjamin Franklin |
|
| Back to top |
|
 |
rhill Retired Dev


Joined: 22 Oct 2004 Posts: 1629 Location: sk.ca
|
Posted: Thu Apr 28, 2005 1:35 am Post subject: |
|
|
have you emerged gentoo-bashcomp? _________________ by design, by neglect
for a fact or just for effect |
|
| Back to top |
|
 |
reavertm Developer

Joined: 05 Feb 2004 Posts: 265 Location: Wrocław
|
Posted: Thu Jun 23, 2005 6:03 pm Post subject: |
|
|
I've got same problem - just after emerging new bash-completion it just stopped working.
I've got installed:
[I--] [ ] app-shells/bash-completion-20050121-r9 (0)
[I--] [ ] app-shells/gentoo-bashcomp-20050516 (0)
and gentoo specific completing - it works - but it does mess with following text:
| Code: | reaver maciek # equery list bash-bash: cd: \: Nie ma takiego pliku ani katalogu
completionbash: cd: \: Nie ma takiego pliku ani katalogu
|
any ideas? _________________ Maciek |
|
| Back to top |
|
 |
deanpence Apprentice


Joined: 08 Nov 2004 Posts: 158 Location: Earth
|
Posted: Wed Jul 13, 2005 10:16 pm Post subject: |
|
|
I'm having the exact same problems on several different gentoo machines. All give me errors when hitting <TAB> to complete package names; all but one work after hitting <TAB> several times; one never works.
Here's what happens when I try to complete the "real" package name:
| Code: | root@yggdrasill:bash-completion> emerge -pv real-bash: cd: '/usr/portage': No such file or directory
-bash: cd: '/usr/local/portage': No such file or directory
-bash: cd: '/usr/portage': No such file or directory
-bash: cd: '/usr/local/portage': No such file or directory |
(There is, in fact, a /usr/portage directory, but it is NFS-mounted.)
Info on the one that never works:
| Code: | [ I] app-shells/bash-completion (20050121-r9): Programmable Completion for bash
[ I] app-shells/bash-completion-config (0.8-r2): Utility to easily add/remove bash-completions to your environment
[ I] app-shells/gentoo-bashcomp (20050516): Gentoo-specific bash command-line completions (emerge, ebuild, equery, etc) |
Did anyone solve this? |
|
| Back to top |
|
 |
fabius Guru


Joined: 29 Nov 2004 Posts: 525
|
Posted: Sun Jul 31, 2005 10:24 am Post subject: |
|
|
| @redbyte and @reavertm: can you post /etc/make.conf? |
|
| Back to top |
|
 |
reavertm Developer

Joined: 05 Feb 2004 Posts: 265 Location: Wrocław
|
Posted: Mon Oct 03, 2005 12:30 am Post subject: here it is (sorry for that delay) |
|
|
| fabius wrote: | | @redbyte and @reavertm: can you post /etc/make.conf? |
| Code: |
CFLAGS="-Os -march=athlon -fomit-frame-pointer -fexpensive-optimizations -pipe"
CHOST="i686-pc-linux-gnu"
CXXFLAGS="${CFLAGS}"
USE="3dnow 3dnowex 3dnowext 3ds 7zip apache2 dga divx4linux erandom
gd-external graphviz jack-tmpfs javascript jpeg2k kdeenablefinal
ladspa lm_sensors lzo lzw lzw-tiff matroska mbox md5sum noplugin
nosendmail nptl nptlonly nvidia pic pie rdesktop rtc sftplogging
smime softquota subversion svg symlink tga threads type1 unicode
usb userlocales utf8 wxgtk1 xgetdefault xinetd xvid -X -apm -arts
-avi -berkdb -encode -flac -fortran -gdbm -gnome -gpm -gtk -gtk2
-java -mikmod -motif -mpeg -nls -oss -pdflib -perl -python
-quicktime -spell -xmms"
# dirty anti-java hack :)
USE="${USE} -java"
MAKEOPTS="-j2"
PORTDIR_OVERLAY="\
/usr/local/portage/my \
/usr/local/portage/kde-live"
GENTOO_MIRRORS="\
http://gentoo.inode.at \
http://gentoo.prz.rzeszow.pl \
http://gentoo.zie.pg.gda.pl \
http://src.gentoo.pl"
|
sorry for delay, I've been off-line
MM _________________ Maciek |
|
| Back to top |
|
 |
fabius Guru


Joined: 29 Nov 2004 Posts: 525
|
Posted: Mon Oct 03, 2005 6:44 pm Post subject: |
|
|
The solution of your problem is to join the PORTDIR_OVERLAY lines as
| Code: | | PORTDIR_OVERLAY="/usr/local/portage/my /usr/local/portage/kde-live" |
If you prefer there is a patch I had submitted on bugzilla: see https://bugs.gentoo.org/show_bug.cgi?id=100373 |
|
| Back to top |
|
 |
reavertm Developer

Joined: 05 Feb 2004 Posts: 265 Location: Wrocław
|
Posted: Tue Oct 04, 2005 9:26 pm Post subject: |
|
|
pretty good work :) _________________ Maciek |
|
| Back to top |
|
 |
|