LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
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, 03:17 PM   #1
rworkman
Slackware Contributor
 
Registered: Oct 2004
Location: Tuscaloosa, Alabama (USA)
Distribution: Slackware
Posts: 2,559

Rep: Reputation: 1351Reputation: 1351Reputation: 1351Reputation: 1351Reputation: 1351Reputation: 1351Reputation: 1351Reputation: 1351Reputation: 1351Reputation: 1351
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, 04: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, 03:41 PM   #3
audriusk
Member
 
Registered: Mar 2011
Location: Klaipėda, Lithuania
Distribution: Slackware
Posts: 360

Rep: Reputation: 199Reputation: 199
Hey, Robby,

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

Rep: Reputation: 31
working fine here too
 
Old 11-08-2011, 01: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, 05:35 AM   #6
disturbed1
Senior Member
 
Registered: Mar 2005
Location: USA
Distribution: Slackware
Posts: 1,133
Blog Entries: 6

Rep: Reputation: 224Reputation: 224Reputation: 224
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 05:37 AM.
 
Old 11-10-2011, 05:21 PM   #7
rworkman
Slackware Contributor
 
Registered: Oct 2004
Location: Tuscaloosa, Alabama (USA)
Distribution: Slackware
Posts: 2,559

Original Poster
Rep: Reputation: 1351Reputation: 1351Reputation: 1351Reputation: 1351Reputation: 1351Reputation: 1351Reputation: 1351Reputation: 1351Reputation: 1351Reputation: 1351
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, 05: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, 07:17 PM   #9
rworkman
Slackware Contributor
 
Registered: Oct 2004
Location: Tuscaloosa, Alabama (USA)
Distribution: Slackware
Posts: 2,559

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

Rep: Reputation: 199Reputation: 199
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, 09:50 AM   #11
audriusk
Member
 
Registered: Mar 2011
Location: Klaipėda, Lithuania
Distribution: Slackware
Posts: 360

Rep: Reputation: 199Reputation: 199
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, 03: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, 08: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, 12:37 PM   #14
audriusk
Member
 
Registered: Mar 2011
Location: Klaipėda, Lithuania
Distribution: Slackware
Posts: 360

Rep: Reputation: 199Reputation: 199
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, 01:15 PM   #15
rworkman
Slackware Contributor
 
Registered: Oct 2004
Location: Tuscaloosa, Alabama (USA)
Distribution: Slackware
Posts: 2,559

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


Reply

Tags
bash-completion, extra, testing



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 08:21 AM
bash completion platypuus Programming 8 05-18-2010 11:17 PM
Bash auto-completion question PatrickNew Linux - General 3 05-02-2008 11:31 PM
xterm and bash completion athanatos Slackware 12 07-22-2006 12:47 PM
question about bash completion Guest1234 Linux - Software 4 02-25-2006 04:09 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 02:23 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
Open Source Consulting | Domain Registration