You are not logged in.

#1 2012-03-20 18:19:30

olive
Member
From: Belgium
Registered: 2008-06-22
Posts: 1,490

Problem with bash completion

There is a problem with bash completion. emacs .... does not complete file name (only directories) when we are in our home directory ($PWD is ~). I have found an old thread, from a year ago ( https://bbs.archlinux.org/viewtopic.php?id=115604 ) mentioning this exact problem and the solution (commenting out line 1644 in /etc/bash_completion); but I do nor remember having had this problem until recently. Are other people still affected by this. Is there a bug report about that?

Offline

#2 2012-03-22 15:12:47

uiii
Member
Registered: 2009-02-25
Posts: 27

Re: Problem with bash completion

I have the problem too. E.g. these things doesn't work: git commands completion, pacman package name competion, commands after sudo, ... The problem begins after the latest update.

Offline

#3 2012-03-22 23:06:00

mauro
Member
Registered: 2010-01-26
Posts: 5

Re: Problem with bash completion

There's a new /etc/bash.bashrc file (installed as bash.bashrc.pacnew) which came with bash 4.2.024-2.  When using this new bash.bashrc file then completion works again.

Offline

#4 2012-03-22 23:10:50

Trilby
Inspector Parrot
Registered: 2011-11-29
Posts: 30,330
Website

Re: Problem with bash completion

olive wrote:

There is a problem with bash completion. emacs

And vim is the solution! ;o)

*ducks and runs*

No problem here, but it could be the pacnew.


"UNIX is simple and coherent" - Dennis Ritchie; "GNU's Not Unix" - Richard Stallman

Offline

#5 2012-03-23 13:45:15

big_gie
Member
Registered: 2005-01-19
Posts: 637

Re: Problem with bash completion

Had the same issue but with git. Every time a new command was entered I would get "bash: __git_ps1: command not found".
I should have though about a .pacnew file!

Offline

#6 2012-03-30 10:01:58

Neburski
Member
Registered: 2009-09-15
Posts: 118

Re: Problem with bash completion

I simply wanted to confirm that moving the /etc/bash.bashrc.pacnew to /etc/bash.bashrc worked.

Offline

Board footer

Powered by FluxBB