Bug 703687

Summary: cp, mv, rm, ls (etc.) remove escaped spaces on tab
Product: [Fedora] Fedora Reporter: Ted Pavlic <ted>
Component: bash-completionAssignee: Ville Skyttä <ville.skytta>
Status: CLOSED DUPLICATE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: medium Docs Contact:
Priority: unspecified    
Version: 14CC: sheltren, ville.skytta
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2011-05-11 05:59:55 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:

Description Ted Pavlic 2011-05-11 02:12:45 UTC
Description of problem:
After a recent update to bash-completion, tab completion of commands like:

cp
rm
mv
ls

and others remove escaped spaces. For example, if there is a directory called "This Directory", doing:

cp This\ <tab>

will result in:

cp This Directory

without an escaped space. The command "cd" does escaping properly.

Version-Release number of selected component (if applicable):
Fedora 14

How reproducible:
Every time

Steps to Reproduce:
1. Issue: mkdir 'This Directory'
2. Issue: cp This\ <tab>
3.
  
Actual results:
Command is replaced with:
cp This Directory

Expected results:
Command should be replaced with:
cp This\ Directory
or a quoted form. The correct behavior exists already with
cd This\ <tab>
which is replaced properly.

Additional info:

Comment 1 Ville Skyttä 2011-05-11 05:59:55 UTC
Feel free to reopen if the workaround or the new update mentioned in #677446 does not work for you.

*** This bug has been marked as a duplicate of bug 677446 ***