LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices



Reply
 
Search this Thread
Old 11-06-2011, 04:17 PM   #1
rworkman
Slackware Contributor
 
Registered: Oct 2004
Location: Tuscaloosa, Alabama (USA)
Distribution: Slackware
Posts: 1,945

Rep: Reputation: Disabled
Request for Testing: bash-completion 2.0


For everyone that uses the bash-completion package from /extra, please have a look at http://connie.slackware.com/~rworkman/bash-completion/ and consider testing the 2.0 prerelease (1.90 at the moment). Be sure to read over the README in there.
 
Click here to see the post LQ members have rated as the most helpful post in this thread.
Old 11-06-2011, 05:21 PM   #2
sahko
Senior Member
 
Registered: Sep 2008
Distribution: Slackware
Posts: 1,041

Rep: Reputation: Disabled
Besides the mentioned in the README improvements regarding pkgtools and slackpkg etc, theres also a new completion for sbopkg.

Quote:
[ Sergey V ]
* New completions: sbopkg
 
Old 11-07-2011, 04:41 PM   #3
audriusk
Member
 
Registered: Mar 2011
Location: Klaipėda, Lithuania
Distribution: Slackware
Posts: 248

Rep: Reputation: 107Reputation: 107
Hey, Robby,

Have been using completion for various stuff all day with your package installed, haven't noticed any problems.
 
Old 11-07-2011, 08:08 PM   #4
escaflown
Member
 
Registered: May 2009
Location: Canada
Distribution: Slackware
Posts: 237

Rep: Reputation: 30
working fine here too
 
Old 11-08-2011, 02:12 PM   #5
eddyvp
Member
 
Registered: Feb 2007
Location: Belgium
Distribution: Slackware
Posts: 37

Rep: Reputation: 17
seems to work allright
 
Old 11-10-2011, 06:35 AM   #6
disturbed1
Senior Member
 
Registered: Mar 2005
Location: USA
Distribution: Slackware
Posts: 1,133
Blog Entries: 6

Rep: Reputation: 223Reputation: 223Reputation: 223
Breaks tab completion.

Code:
removepkg /var/log/pa{tab}ckages [space]

should be 

removepkg /var/log/pa{tab}ckages/
---edit---
Well, I have to use it differently
removepkg kde{tab} <--- completes as I'd expect removepkg /var/log/packages/kde{tab}

Last edited by disturbed1; 11-10-2011 at 06:37 AM.
 
Old 11-10-2011, 06:21 PM   #7
rworkman
Slackware Contributor
 
Registered: Oct 2004
Location: Tuscaloosa, Alabama (USA)
Distribution: Slackware
Posts: 1,945

Original Poster
Rep: Reputation: Disabled
Thanks for the feedback, guys - it's much appreciated.
Re the /var/log/packages/ tab completion (added space), I too have noticed that, but I also work around it by using the completion as intended. I guess it's arguable whether that's even a bug...
 
Old 11-10-2011, 06:51 PM   #8
_GArik_
LQ Newbie
 
Registered: Nov 2010
Posts: 19

Rep: Reputation: 6
This should be fixed now in the master branch of bash-completion with this commit. If there is a slash somewhere in argument to removepkg, completion assumes that user tries to enter a filename.

> I guess it's arguable whether that's even a bug...

Completing filenames is not very useful, but sometimes it can be more desirable. For example, this way you can remove kde with one command
$ removepkg /srv/ftp/slackware/{kde,kdei}/*.txz
 
3 members found this post helpful.
Old 11-10-2011, 08:17 PM   #9
rworkman
Slackware Contributor
 
Registered: Oct 2004
Location: Tuscaloosa, Alabama (USA)
Distribution: Slackware
Posts: 1,945

Original Poster
Rep: Reputation: Disabled
Awesome; thanks, GArik I just pushed a package rebuild with that patch.
 
Old 11-11-2011, 10:32 AM   #10
audriusk
Member
 
Registered: Mar 2011
Location: Klaipėda, Lithuania
Distribution: Slackware
Posts: 248

Rep: Reputation: 107Reputation: 107
Found a bug, just not sure if it happens only after package rebuild or it was there right from the start (I'll try to rebuild without the last patch). Here's how to reproduce:

Code:
$ touch foo\(bar\).txt
$ mv fo<TAB> fo<TAB>
The second attempt to complete does nothing. Happens only with files which have parentheses in their names.
 
Old 11-11-2011, 10:50 AM   #11
audriusk
Member
 
Registered: Mar 2011
Location: Klaipėda, Lithuania
Distribution: Slackware
Posts: 248

Rep: Reputation: 107Reputation: 107
Nope, still the same without the last patch. Also it seems that it's the escaping that's causing this, not the parens themselves (the bug occurs with escaped space characters etc).
 
Old 11-11-2011, 04:03 PM   #12
_GArik_
LQ Newbie
 
Registered: Nov 2010
Posts: 19

Rep: Reputation: 6
This is a known issue. Completion fails if there are sequential duplicate items in a list of arguments. It is unlikely that this bug will be fixed before release of bash-completion-2.0
 
Old 11-17-2011, 09:56 AM   #13
_GArik_
LQ Newbie
 
Registered: Nov 2010
Posts: 19

Rep: Reputation: 6
Audrius, your issue is fixed now in the master branch. There is also one new slackware related improvement: completion for upgradepkg now supports "oldpkg%newpkg" notation
 
3 members found this post helpful.
Old 11-17-2011, 01:37 PM   #14
audriusk
Member
 
Registered: Mar 2011
Location: Klaipėda, Lithuania
Distribution: Slackware
Posts: 248

Rep: Reputation: 107Reputation: 107
This is great! Made a package using code from master branch, installed it, and indeed that pesky bug is gone. Thanks!

oldpkg%newpkg completion is a nice addition, too.
 
Old 11-17-2011, 02:15 PM   #15
rworkman
Slackware Contributor
 
Registered: Oct 2004
Location: Tuscaloosa, Alabama (USA)
Distribution: Slackware
Posts: 1,945

Original Poster
Rep: Reputation: Disabled
I just uploaded a rebuilt package with those patches :-)
 
  


Reply

Tags
bash-completion, extra, testing


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
bash-completion package needs testing _GArik_ Slackware 16 05-02-2011 09:21 AM
bash completion platypuus Programming 8 05-19-2010 12:17 AM
Bash auto-completion question PatrickNew Linux - General 3 05-03-2008 12:31 AM
xterm and bash completion athanatos Slackware 12 07-22-2006 01:47 PM
question about bash completion Guest1234 Linux - Software 4 02-25-2006 05:09 PM


All times are GMT -5. The time now is 04:57 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration