0

Okay, I just don't understand why this isn't working automatically.

When I'm working on my mac, spaces and other odd characters get escaped automatically when I do autocomplete in bash, but on my ubuntu box, they don't. Even worse, if I do escape the character, then try autocomplete, the escapes disappear. Why doesn't debian's bash complete know how to deal with spaces and other chars that need escaping out of the box??

tamouse
  • 2,169
  • 1
  • 19
  • 26
  • did you change anything in your autocomplete? what terminal are you using? what does your bash look like? – O'Mutt Sep 28 '12 at 14:28
  • Have you modified your .bash_profile or .bashrc file? – Lipongo Sep 29 '12 at 03:57
  • @Lipongo Yes, i've modified .profile and .bashrc. I've added some aliases, and such. I've also added some files to .bashrc.d. I have not, however, touched the part in .bashrc where it loads /etc/bash_completion. That is still: if [ -f /etc/bash_completion ] && ! shopt -oq posix; then . /etc/bash_completion fi – tamouse Sep 29 '12 at 19:16
  • @Mutmatt nothing has changed in the /etc/bash_completion file. I'm not sure what you mean by "what does your bash look like" – tamouse Sep 29 '12 at 19:20
  • I.E. what does your bashrc or bash profile look like – O'Mutt Sep 29 '12 at 23:31
  • Likely something you changed in your .bash_profile or .bashrc file is causing the issue. – Lipongo Sep 30 '12 at 02:04
  • Here are the unaltered .bashrc and .profile of a newly created user, and the problem still exists when doing bash complete in a shell when logged in under this user: https://gist.github.com/3809601 – tamouse Oct 01 '12 at 05:28
  • what happens when you run `locate completion`? – O'Mutt Oct 01 '12 at 18:58
  • P.S. that bashrc works A.O.K. for me in my term – O'Mutt Oct 01 '12 at 19:05
  • @Mutmatt i get a very very long list of entries: https://gist.github.com/3815702 – tamouse Oct 02 '12 at 01:56
  • @Mutmatt that same .bashrc and .profile also work on my debian 6 VPS. – tamouse Oct 02 '12 at 01:57

2 Answers2

1

THe answer to my question appears here:

Bash autocomplete doesn't escape SPACE and doesn't mark directories in Ubuntu 11.4

Remove /etc/bash_completion.d/acroread.sh

Community
  • 1
  • 1
tamouse
  • 2,169
  • 1
  • 19
  • 26
0

Debian isn't the same thing as Ubuntu. Also, bash completion isn't part of bash proper, it's a package. I suggest simply uninstalling and reinstalling the package. If you're curious or have customized changes to the bash stack, back up your files beforehand for comparison.

Nathan
  • 9
  • 1