Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 200854 - app-shells/bash compgen fails on apostrophes
Summary: app-shells/bash compgen fails on apostrophes
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: High minor (vote)
Assignee: Gentoo's Team for Core System packages
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-11-30 17:55 UTC by Brandon Mintern
Modified: 2011-01-22 00:12 UTC (History)
2 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Brandon Mintern 2007-11-30 17:55:05 UTC
After completing a directory with an apostrophe in its name, tab completion no longer works.

Reproducible: Always

Steps to Reproduce:
1. mkdir foobar
2. touch some.gif
3. display foo<TAB><TAB>
4. Note correct completion of "foobar/some.gif"
5. mv foobar "foo'bar"
6. display foo<TAB><TAB>

Actual Results:  
The first <TAB> completes to "foo'bar/" but subsequent tabbing does nothing

Expected Results:  
The second <TAB> should result in the string "foo'bar/some.gif"

I don't know if it's relevant, but my bash version is 3.2_p17
Comment 1 Santiago M. Mola (RETIRED) gentoo-dev 2008-04-20 21:43:24 UTC
This is fixed in Ubuntu. Their bug is https://bugs.launchpad.net/ubuntu/+source/bash/+bug/123665
Comment 2 Soren Harward 2008-07-03 13:23:57 UTC
This bug still exists in bash-completion-20060301.
Comment 3 Santiago M. Mola (RETIRED) gentoo-dev 2008-07-03 13:58:23 UTC
This is a bug in bash itself.

$ touch "1'1 1" "1'2 2"
$ compgen -f 1\'
1'2 2
1'1 1
$ compgen -f 1\'1
$ echo $?
1

Ubuntu did a workaround in bash-completion but didn't fix bash' bug.
Comment 4 SpanKY gentoo-dev 2011-01-22 00:12:28 UTC
seems to be fixed in latest stable bash-4.1