Bug 508435 - 'rm' of file with an apostrophe in it shows escape character
'rm' of file with an apostrophe in it shows escape character
Status: CLOSED NOTABUG
Product: Fedora
Classification: Fedora
Component: coreutils (Show other bugs)
11
All Linux
low Severity low
: ---
: ---
Assigned To: Ondrej Vasik
Fedora Extras Quality Assurance
:
Depends On:
Blocks:
  Show dependency treegraph
 
Reported: 2009-06-27 04:14 EDT by ^mp3axe^
Modified: 2009-11-19 08:25 EST (History)
3 users (show)

See Also:
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: ---


Attachments (Terms of Use)

  None (edit)
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):
coreutils-7.2-1.fc11

How reproducible:
Always

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.

Note You need to log in before you can comment on or make changes to this bug.