Bug 717151

Summary: Terminal tab autocompletion error
Product: [openSUSE] openSUSE 12.3 Reporter: Forgotten User r0LZxfcckM <forgotten_r0LZxfcckM>
Component: BasesystemAssignee: Forgotten User 4yKfwBnymp <forgotten_4yKfwBnymp>
Status: RESOLVED FIXED QA Contact: E-mail List <qa-bugs>
Severity: Normal    
Priority: P3 - Medium CC: coolo, dmueller, forgotten_tCnyPY8iPq, forgotten_vpzjwrvGh-, werner
Version: Final   
Target Milestone: Final   
Hardware: x86-64   
OS: Other   
Whiteboard:
Found By: --- Services Priority:
Business Priority: Blocker: ---
Marketing QA Status: --- IT Deployment: ---

Description Forgotten User r0LZxfcckM 2011-09-11 00:14:39 UTC
User-Agent:       Mozilla/5.0 (X11; Linux i686; rv:6.0) Gecko/20100101 Firefox/6.0

When trying to autocomplete on /etc and related directories, the autocompletion adds an extra space.

Reproducible: Always

Steps to Reproduce:
1. Go to console
2. type /et
3. press tab
4. You'll see the extra space on the completion. ("/etc " instead of "/etc")
Comment 1 Vincent Untz 2011-12-07 08:44:05 UTC
This has nothing to do with GNOME. I'm assuming this is bash, so assigning to Werner. If bash-completion is installed or if another shell is used, it should be reassigned.
Comment 2 Dr. Werner Fink 2011-12-07 08:55:08 UTC
Here it works but I do not use bash-completion and I've tested with
openSUSE 12.1 bash 4.2.20(1) from factory.

Simple test with usung nornmal completion is:

 bash> complete -r
 bash> . /etc/profile.d/complete.bash
 bash> /et<TAB>

which shoes /etc/ without spaces at the end of the string.
Comment 3 Forgotten User tCnyPY8iPq 2011-12-07 09:00:08 UTC
Can you try installing the latest packaged bash-completion:

http://software.opensuse.org/ymp/shells/openSUSE_12.1/bash-completion.ymp?base=openSUSE%3A12.1&query=bash-completion

And see if you can still reproduce the problem?

Reboot after installation to make sure you're using the new completions.
Comment 4 Forgotten User tCnyPY8iPq 2011-12-07 09:00:58 UTC
Sorry, just noticed that you're using 11.4, not 12.1.
So the correct link is this:

http://software.opensuse.org/ymp/shells/openSUSE_11.4/bash-completion.ymp?base=openSUSE%3A11.4&query=bash-completion
Comment 5 Forgotten User tCnyPY8iPq 2011-12-18 18:35:37 UTC
Any news?
I can't reproduce this.
If no-one else is able to reproduce it, and Andres doesn't report anything about the updated package I'll close this in 7 days.
Comment 6 Forgotten User tCnyPY8iPq 2012-01-01 20:33:34 UTC
I close this bug, since apparently no-one is able to reproduce it.

Feel free to reopen this if you can reproduce it.
Comment 7 Forgotten User vpzjwrvGh- 2013-03-31 07:52:41 UTC
Same here on openSUSE 12.3 x86-64 final:

Steps to Reproduce:
1. Go to console
2. type  less /et
3. press tab
4. You'll see the extra space on the completion. ("less /etc " instead of "/etc/")

Bug within bash-completion package, more specifically line 1789 of file /usr/share/bash-completion/bash-completion

< complete -F _longopt a2ps awk base64 bash bc bison cat colordiff cp csplit \
> complete -F _longopt -o filenames a2ps awk base64 bash bc bison cat colordiff cp csplit \

That is, add -o filenames . The Ubuntu bug database knows the solution

https://bugs.launchpad.net/ubuntu/+source/acroread/+bug/769866/

escpecially comment #10.
Comment 8 Forgotten User tCnyPY8iPq 2013-04-02 08:56:06 UTC
I can't help, as I have no openSUSE systems available to reproduce the bug.
Note that I'm no longer the maintainer of bash-completion.
Because of this, I'm setting the default assignee.
Comment 9 Dr. Werner Fink 2013-04-08 09:27:31 UTC
Q: Who is bug owner of bash-completion?
Comment 10 Stephan Kulow 2013-04-08 10:07:42 UTC
the package was submitted by Marco. If he no longer cares, please file a deleterequest and close as WONTFIX
Comment 11 Dr. Werner Fink 2013-04-08 12:18:11 UTC
(In reply to comment #10)

Cool ... you want do delete a package which will be required by some base system packages as well as by many users.  What about asking on the mailing lists for a maintainer?
Comment 12 Stephan Kulow 2013-04-08 12:24:14 UTC
#>rpm -e bash-completion
error: package bash-completion is not installed

Can't be that essential
Comment 13 Dr. Werner Fink 2013-04-08 12:53:31 UTC
/suse/werner> zcat /work/SRC/INDEX.spec.gz | grep SRC/all | xargs grep -E '^((Build)?Requires|Recommends|Suggests):[[:blank:]]*bash-completion'
/work/SRC/all/subversion/subversion.spec:BuildRequires:  bash-completion
/work/SRC/all/subversion/subversion.spec:Requires:       bash-completion

.. guess: many developers will install not only git but also svn
Comment 14 Stephan Kulow 2013-04-08 16:50:27 UTC
as long as they don't install subversion-bash-completion, there is hardly a problem.
Comment 15 Forgotten User vpzjwrvGh- 2013-04-22 18:21:26 UTC
Unfortunately, nobody seems to care, although I have alreday presented the fix :-(
Comment 16 Dr. Werner Fink 2013-04-23 07:04:50 UTC
(In reply to comment #15)

Would you like to become a maintainer/bugowner of bash-completion?
Comment 17 Forgotten User vpzjwrvGh- 2013-04-23 07:35:19 UTC
While writing comment 15, I was looking forward to receive this question. However, I have in neither way the technical background to maintain this package. Further, I personally feel that there are more and more bugs within OpenSUSE, so I already spend more time in reporting and debugging them (see my other posts) than I actually have. I already have a 60h/week job and my employer does not provide any time for that. Please note, that I use OpenSUSE only on my private computer at home.

Sorry for that!

Btw. I have some contentious question: Are'nt there some guys which maintain the commercial versions of suse, which should have some interest in an operating OpenSUSE? At least for intermediately fixing things in packages with currently no maintainer?

With reporting bugs and providing necessary infos I try to give something back to the community.
Comment 18 Dr. Werner Fink 2013-04-23 14:39:15 UTC
SR #173059
SR #173056

(In reply to comment #17)
> Btw. I have some contentious question: Are'nt there some guys which maintain
> the commercial versions of suse, which should have some interest in an
> operating OpenSUSE? At least for intermediately fixing things in packages with
> currently no maintainer?

As long as bash_completion is not part of a comercial product this will not happen.  And bash copletion is somehow a source of bugs due to the fact that programmable completion is quite complex and it changes between the bash versions.

Even if I'm maintainer of bash I prefere tcsh for interactive work because completion makes much more fun.   See for an example the base completion /etc/profile.d/complete.bash I've written and compare this to e.g. /etc/profile.d/complete.tcsh
Comment 19 Bernhard Wiedemann 2013-04-23 15:00:09 UTC
This is an autogenerated message for OBS integration:
This bug (717151) was mentioned in
https://build.opensuse.org/request/show/173056 Factory / bash-completion
https://build.opensuse.org/request/show/173059 Maintenance /
Comment 20 Bernhard Wiedemann 2013-04-23 16:00:08 UTC
This is an autogenerated message for OBS integration:
This bug (717151) was mentioned in
https://build.opensuse.org/request/show/173067 Factory / bash-completion
Comment 21 Bernhard Wiedemann 2013-04-23 17:00:08 UTC
This is an autogenerated message for OBS integration:
This bug (717151) was mentioned in
https://build.opensuse.org/request/show/173070 Maintenance /
Comment 22 Bernhard Wiedemann 2013-04-29 10:00:08 UTC
This is an autogenerated message for OBS integration:
This bug (717151) was mentioned in
https://build.opensuse.org/request/show/173698 Maintenance /
Comment 23 Swamp Workflow Management 2013-06-10 10:23:04 UTC
openSUSE-RU-2013:0968-1: An update that has two recommended fixes can now be installed.

Category: recommended (low)
Bug References: 717151,794686
CVE References: 
Sources used:
openSUSE 12.3 (src):    bash-completion-2.0-2.4.1