Bug 508435

Summary: 'rm' of file with an apostrophe in it shows escape character
Product: [Fedora] Fedora Reporter: ^mp3axe^ <swu98>
Component: coreutilsAssignee: Ondrej Vasik <ovasik>
Status: CLOSED NOTABUG QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: low Docs Contact:
Priority: low    
Version: 11CC: kdudka, ovasik, twaugh
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: Linux   
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2009-11-19 08:25:19 EST Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---

Description ^mp3axe^ 2009-06-27 04:14:16 EDT
Description of problem:
A file that rm prompts to delete will show the escape character if the file name contains an apostrophe.

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

How reproducible:

Steps to Reproduce:
1. touch he\'ll
2. rm -i he\'ll
Actual results:
rm: remove regular empty file `he\'ll'? 

Expected results:
rm: remove regular empty file `he'll'? 
<NOTICE Backslash should not show>

Additional info:
Comment 1 Ondrej Vasik 2009-06-27 06:41:32 EDT
Thanks for report, it does show escape char for C locales, it's correctly escaped for multibyte locales(at least with my cs_CZ.UTF-8). Will check on Monday whether it is bug or feature.
Comment 2 Kamil Dudka 2009-11-19 08:25:19 EST
(In reply to comment #0)
> Expected results:
> rm: remove regular empty file `he'll'? 
> <NOTICE Backslash should not show>

Where did you get that expectation? Please refer the corresponding documentation, standard or whatever. Closing NOTABUG for now.