To reproduce, type # vgcreate foo /dev/s[TAB] After pressing TAB key your terminal will display > # vgcreate foo /dev/s-bash: : command not found While you are look into this you may want to update completion of "lvcreate" as well to include support for "--size" parameter. > sys-fs/lvm2-2.02.145-r2::gentoo was built with the following: > USE="readline udev -clvm -cman -corosync -device-mapper-only -lvm1 -lvm2create_initrd -openais (-selinux) -static -static-libs -systemd -thin" ABI_X86="64" > CFLAGS="-O2 -pipe -march=ivybridge -mtune=ivybridge -mno-xsaveopt" > CXXFLAGS="-O2 -pipe -march=ivybridge -mtune=ivybridge -mno-xsaveopt"
Also, "lvcreate" completion doesn't understand "--extents" parameter. And when used, completion of the vgname parameter (the last parameter) doesn't work anymore.
pvremove's completion hit the same problem.
Feel like reporting this upstream? I ain't using lvm.
Reported upstream.
FWICS, the commit supposedly fixed it is included in 2.5+. Feel free to reopen if this still happens.