I'm an OS X user who's used to ssh'ing into various Linux machines. Recently, I installed Ubuntu on one of our servers and have noticed very different tab completion behavior in bash. Among other things, the completion only works for certain files types and is dependent on the context. Also, shell variables are no longer expanded
OS X is using GNU bash, version 3.2.48(1)-release (x86_64-apple-darwin12), while our linux server is using GNU bash, version 4.2.37(1)-release (x86_64-pc-linux-gnu). I'm guessing the behavior difference is due to the major version bump, but no amount of adjusting the /etc/bash_completion seems to make the linux behavior operate like the OS X version.
Is there some way to make the linux version behave the same way? Is it as simple as installing bash 3.2 (or is that going to cause even more issues)?
/etc/bash_completion
– jordanm Apr 20 at 3:06