Bug 103177

Summary: bash: tab completion fails with using ~ homedir expansion
Product: [openSUSE] SUSE LINUX 10.0 Reporter: Jeff Mahoney <jeffm>
Component: BasesystemAssignee: Dr. Werner Fink <werner>
Status: RESOLVED FIXED QA Contact: E-mail List <qa-bugs>
Severity: Minor    
Priority: P5 - None    
Version: Beta 1   
Target Milestone: ---   
Hardware: Other   
OS: All   
Whiteboard:
Found By: Other Services Priority:
Business Priority: Blocker: ---
Marketing QA Status: --- IT Deployment: ---

Description Jeff Mahoney 2005-08-09 20:41:30 UTC
mkdir ~/"some directory with ()'s"

case 1, works:
cd ~
cd some<tab>
result: cd some\ directory\ with\ \(\)\'s/

case 2, works:
cd /home/<user>/some<tab>
result: cd /home/jeffm/some\ directory\ with\ \(\)\'s/

case 3, fails:
cd ~/some<tab>
result: cd ~/some\ directory\ with\ ()'s/
expected result: cd ~/some\ directory\ with\ \(\)\'s/

In case 3, the parens and the ' are not escaped, resulting in a syntax error
when the command is entered.

This bug is also present in SL9.3. tcsh works fine.
Comment 1 Dr. Werner Fink 2005-08-10 09:42:25 UTC
fixed.