I'm using the standard bash shell. Many programs seems to have rather complex tab completion behavior, including command line options and additional arguments to command line options. For example, after "apt-get install" it knows the next argument is a package name. I figured that there was a configuration file for those tools to describe that behavior, rather than being built into the shell for a particular set of tools, especially from the variety of tools that have that behavior. I guess it's also possible that most programs do have such a configuration file, but mount and umount don't, and the default behavior with sudo is wrong.
On Mon, Oct 18, 2010 at 5:23 AM, LaMont Jones <lam...@debian.org> wrote: > On Sun, Oct 17, 2010 at 11:25:13PM -0700, Aaron Barany wrote: > > After a little more experimentation, it appears that it only adds extra > > escape characters if mount (and unmount) are preceded by sudo. The only > > reason why umount worked for my test in my original message is because I > > didn't specify sudo. Adding sudo in front of other commands, such as cat > and > > ls still works with tab completion, so it still seems to be limited to > mount > > and umount. > > Not sure what is delivering tab-completion logic for mount, but it's not > the > mount package. What shell are you using? > > lamont >