Bug 679890

Summary: incorrect tab completion for paths, starting with tilde
Product: [openSUSE] openSUSE 11.4 Reporter: Rihards Olups <richlv>
Component: BasesystemAssignee: E-mail List <bnc-team-screening>
Status: VERIFIED FIXED QA Contact: E-mail List <qa-bugs>
Severity: Normal    
Priority: P5 - None CC: puzel
Version: Final   
Target Milestone: ---   
Hardware: Other   
OS: Other   
Whiteboard:
Found By: --- Services Priority:
Business Priority: Blocker: ---
Marketing QA Status: --- IT Deployment: ---

Description Rihards Olups 2011-03-15 18:56:51 UTC
User-Agent:       Opera/9.80 (X11; Linux i686; U; en) Presto/2.7.62 Version/11.01

if path starts with tilde, path completion for subdirectories does not add trailing slash because it thinks two entries like that exist - one with single slash, one with double slash.

for example,

cd ~/d[tab]

results in "~/dir", not "dir/". pressing tab again offers two choices - "dir/ dir//"

same happens for paths like "~user/d[tab]"

doing "/home/user/d[tab]" properly completes to "dir/"

Reproducible: Always
Comment 1 Petr Uzel 2011-06-26 16:55:39 UTC
What shell is this?
Comment 2 Rihards Olups 2011-06-27 15:01:48 UTC
it's bash (sorry for not mentioning that), but looks like with all patches applied, the problem is gone -> closing