You are not logged in.

#1 2008-01-10 17:40:56

DonVla
Member
From: Bonn, Germany
Registered: 2007-06-07
Posts: 997

bash completion upgrade breaks pacman bc

hello,
today's bash completion upgrade deletes the archlinux file under /etc/bash_completion.d/.
pacman's bash completion doesn't work anymore. i've seen that pacman 3.1 has it's own bash completion file.
is this somehow related?

vlad

ps: i'm not using testing.

Last edited by DonVla (2008-01-10 17:50:15)

Offline

#2 2008-01-10 18:08:14

toofishes
Developer
From: Chicago, IL
Registered: 2006-06-06
Posts: 602
Website

Re: bash completion upgrade breaks pacman bc

Correct.

Pacman will move to [core] soon, and the old bash completion file for pacman was very outdated and is better maintained in the pacman package. Hopefully you can survive a day or two without that completion file.

Offline

#3 2008-01-10 18:12:20

DonVla
Member
From: Bonn, Germany
Registered: 2007-06-07
Posts: 997

Re: bash completion upgrade breaks pacman bc

sure, thanks.

Offline

#4 2008-01-10 22:19:48

defcon
Member
From: Germany, Bruchsal
Registered: 2006-08-16
Posts: 177

Re: bash completion upgrade breaks pacman bc

i've seen that pacman 3.1 has it's own bash completion file

i installed the new pacman, but bash_completion doesnt work....


Registed Linux User 608596

Offline

#5 2008-01-10 22:43:44

toofishes
Developer
From: Chicago, IL
Registered: 2006-06-06
Posts: 602
Website

Re: bash completion upgrade breaks pacman bc

defcon wrote:

i've seen that pacman 3.1 has it's own bash completion file

i installed the new pacman, but bash_completion doesnt work....

Did you source it or logout/login? It doesn't magically do that itself.

. /etc/bash_completion

Offline

#6 2008-01-11 00:03:19

Misfit138
Misfit Emeritus
From: USA
Registered: 2006-11-27
Posts: 4,189

Re: bash completion upgrade breaks pacman bc

I can't wait to try out pacman-bash_completion. This is one terrific feature that I am anxiously awaiting.
Great job.

Offline

#7 2008-01-11 05:15:53

underpenguin
Member
Registered: 2007-02-01
Posts: 116

Re: bash completion upgrade breaks pacman bc

Package installation completion is the only thing I miss from Ubuntu. This will be great.

Offline

#8 2008-01-11 09:05:49

defcon
Member
From: Germany, Bruchsal
Registered: 2006-08-16
Posts: 177

Re: bash completion upgrade breaks pacman bc

toofishes wrote:
defcon wrote:

i've seen that pacman 3.1 has it's own bash completion file

i installed the new pacman, but bash_completion doesnt work....

Did you source it or logout/login? It doesn't magically do that itself.

. /etc/bash_completion

both, i reload it with source ~/.bashrc  and later i logged out/in


Registed Linux User 608596

Offline

#9 2008-02-16 15:58:15

defcon
Member
From: Germany, Bruchsal
Registered: 2006-08-16
Posts: 177

Re: bash completion upgrade breaks pacman bc

Problem is still available :-/


Registed Linux User 608596

Offline

#10 2008-02-16 16:18:20

dolby
Member
From: 1992
Registered: 2006-08-08
Posts: 1,581

Re: bash completion upgrade breaks pacman bc

do you maybe have an alias for grep in your .bashrc ?
thats what made it not to work for me. bash pacman completion uses it a lot


There shouldn't be any reason to learn more editor types than emacs or vi -- mg (1)
[You learn that sarcasm does not often work well in international forums.  That is why we avoid it. -- ewaller (arch linux forum moderator)

Offline

#11 2008-02-16 16:31:40

tigrmesh
IRC Op
From: Florida, US
Registered: 2007-12-11
Posts: 794

Re: bash completion upgrade breaks pacman bc

What a great feature! big_smile  I hadn't tried it before I found this thread.

@defcon - Did you try hitting tab twice?  That's what works for me.  I have this in my .bashrc:
alias grep="grep --color=auto"

Offline

#12 2008-02-16 16:42:17

dolby
Member
From: 1992
Registered: 2006-08-08
Posts: 1,581

Re: bash completion upgrade breaks pacman bc

i had alias grep="grep -n --color=auto" and making grep print the line number broke pacman -S completion. -Q and -R completion worked


There shouldn't be any reason to learn more editor types than emacs or vi -- mg (1)
[You learn that sarcasm does not often work well in international forums.  That is why we avoid it. -- ewaller (arch linux forum moderator)

Offline

#13 2008-02-16 16:52:22

tigrmesh
IRC Op
From: Florida, US
Registered: 2007-12-11
Posts: 794

Re: bash completion upgrade breaks pacman bc

That's weird.  All 3 work for me.  Hmm...

Offline

#14 2008-02-16 16:53:19

shining
Pacman Developer
Registered: 2006-05-10
Posts: 2,043

Re: bash completion upgrade breaks pacman bc

tigrmesh wrote:

That's weird.  All 3 work for me.  Hmm...

Why is it weird? You are not using the -n option of grep.


pacman roulette : pacman -S $(pacman -Slq | LANG=C sort -R | head -n $((RANDOM % 10)))

Offline

#15 2008-02-16 17:12:51

defcon
Member
From: Germany, Bruchsal
Registered: 2006-08-16
Posts: 177

Re: bash completion upgrade breaks pacman bc

my .bashrc is clear. PS1 is the only thing i have.

@tigrmesh
yes, i pressed TAB twice oder 3-times

Last edited by defcon (2008-02-16 17:13:57)


Registed Linux User 608596

Offline

#16 2008-02-16 17:14:48

tigrmesh
IRC Op
From: Florida, US
Registered: 2007-12-11
Posts: 794

Re: bash completion upgrade breaks pacman bc

So it wasn't the alias itself, it was the option.

@shining - Thanks for explaining. smile

Offline

#17 2008-02-16 17:44:29

defcon
Member
From: Germany, Bruchsal
Registered: 2006-08-16
Posts: 177

Re: bash completion upgrade breaks pacman bc

Damn, why is bash_completion is not working? mad


Registed Linux User 608596

Offline

#18 2008-02-16 20:17:01

shining
Pacman Developer
Registered: 2006-05-10
Posts: 2,043

Re: bash completion upgrade breaks pacman bc

Try zsh smile


pacman roulette : pacman -S $(pacman -Slq | LANG=C sort -R | head -n $((RANDOM % 10)))

Offline

#19 2008-02-16 20:38:52

defcon
Member
From: Germany, Bruchsal
Registered: 2006-08-16
Posts: 177

Re: bash completion upgrade breaks pacman bc

Yes, good idea. smile


Registed Linux User 608596

Offline

Board footer

Powered by FluxBB