Summary: | With bash-completion installed mount <tab> causes weird characters or a delay | ||
---|---|---|---|
Product: | Gentoo Linux | Reporter: | Adam <richard.adam> |
Component: | Current packages | Assignee: | Gentoo Shell Tools project <shell-tools> |
Status: | RESOLVED WORKSFORME | ||
Severity: | minor | ||
Priority: | High | ||
Version: | unspecified | ||
Hardware: | All | ||
OS: | Linux | ||
Whiteboard: | |||
Package list: | Runtime testing required: | --- |
Description
Adam
2005-04-19 06:23:44 UTC
I can work around it temporarily by adding: complete -r mount to my .bashrc to prevent the special completions for the mount command. But it would still be better if I could use the special completion. Could you post your fstab please? adam>cat /etc/fstab # This file is edited by fstab-sync - see 'man fstab-sync' for details # /etc/fstab: static file system information. # $Header: /home/cvsroot/gentoo-src/rc-scripts/etc/fstab,v 1.14 2003/10/13 20:03:38 azarah Exp $ # # noatime turns off atimes for increased performance (atimes normally aren't # needed; notail increases performance of ReiserFS (at the expense of storage # efficiency). It's safe to drop the noatime options if you want and to # switch between notail and tail freely. # <fs> <mountpoint> <type> <opts> <dump/pass> # NOTE: If your BOOT partition is ReiserFS, add the notail option to opts. # NOTE: The next line is critical for boot! none /proc proc defaults 0 0 # glibc 2.2 and above expects tmpfs to be mounted at /dev/shm for # POSIX shared memory (shm_open, shm_unlink). # (tmpfs is a dynamically expandable/shrinkable ramdisk, and will # use almost no memory if not populated with files) # Adding the following line to /etc/fstab should take care of this: none /dev/shm tmpfs defaults 0 0 #It seems like if you put noauto for drives that hold removable media, it prevents them from being #mounted automatically at startup. /dev/hda5 / reiserfs noatime 0 0 /dev/hda6 /home ext3 noatime 0 0 /dev/hda7 swap swap defaults 0 0 /dev/hdc /mnt/cdrom iso9660 noauto,users,ro 0 0 /dev/cdrw /mnt/cdrom2 iso9660 noauto,users,ro 0 0 /dev/fd0 /mnt/floppy vfat,auto noauto,users,sync 0 0 /dev/zipdrive4 /mnt/zip vfat,auto noauto,users,sync 0 0 /dev/camera /mnt/camera vfat noauto,users,sync 0 0 #none /proc/bus/usb usbdevfs defaults 0 0 none /tmp tmpfs defaults 0 0 #just testing this /dev/loop0 /mnt/loop iso9660 noauto,users,ro,loop=/dev/loop0 0 0 hmm.. it really should be working. I saved your fstab as ~/fstab and ran $ awk '! /^[ \t]*#/ {if ($2 ~ /\//) print $2}' /home/ka0ttic/fstab | grep "^/" /proc /dev/shm / /home /mnt/cdrom /mnt/cdrom2 /mnt/floppy /mnt/zip /mnt/camera /tmp /mnt/loop That's what would be executed if you typed "mount /<TAB>". What output do you get? mount completion works fine here... I got that same output. I'm using bash-completion-20050121-r1, since I don't have the ~x86 keyword set. Maybe you're using a newer version? Sorry Adam, never saw your response. There are more recent revisions but I get the same results (working) with 20050121-r1. It works for us. |