Bug 221428

Summary: bash file completion screwed up with somefile:
Product: [Fedora] Fedora Reporter: Horst H. von Brand <vonbrand>
Component: bashAssignee: Tim Waugh <twaugh>
Status: CLOSED NOTABUG QA Contact: Ben Levenson <benl>
Severity: medium Docs Contact:
Priority: medium    
Version: rawhide   
Target Milestone: ---   
Target Release: ---   
Hardware: i386   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2007-01-04 17:12:54 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Attachments:
Description Flags
My .bash_profile
none
My .bashrc none

Description Horst H. von Brand 2007-01-04 17:02:32 UTC
Description of problem:
Filenames containing : are completed weirdly

Version-Release number of selected component (if applicable):
bash-3.2-1.fc7

How reproducible:
Always

Steps to Reproduce:
1. ls /etc/gdm/custom.conf:<TAB>
2.
3.
  
Actual results:
ls /etc/gdm/custom.conf:/etc/gdm/custom.conf\:0

Expected results:
ls /etc/gdm/custom.conf\:0

Additional info:
This happens with my (bog standard) .bash_profile and .bashrc (attached), but
not when I run "bash --noprofile --norc" (?)

Comment 1 Horst H. von Brand 2007-01-04 17:02:32 UTC
Created attachment 144817 [details]
My .bash_profile

Comment 2 Horst H. von Brand 2007-01-04 17:03:14 UTC
Created attachment 144818 [details]
My .bashrc

Comment 3 Tim Waugh 2007-01-04 17:04:17 UTC
What does 'echo $COMP_WORDBREAKS' say?

Comment 4 Horst H. von Brand 2007-01-04 17:09:37 UTC
$ echo $COMP_WORDBREAKS
"'><=;|&(:


Comment 5 Horst H. von Brand 2007-01-04 17:10:42 UTC
BTW, I've also got bash-completion-20060301-2.fc6

Comment 6 Tim Waugh 2007-01-04 17:12:54 UTC
Working as expected.  ':' is in the default COMP_WORDBREAKS so that
auto-completion works correctly when building a PATH-style variable on the
command line, for example.  Set COMP_WORDBREAKS differently if you like, or use
'\:' instead of ':' to use a literal ':' character in a filename and have
completion work.