Bug 508435 - 'rm' of file with an apostrophe in it shows escape character
Summary: 'rm' of file with an apostrophe in it shows escape character
Keywords:
Status: CLOSED NOTABUG
Alias: None
Product: Fedora
Classification: Fedora
Component: coreutils
Version: 11
Hardware: All
OS: Linux
low
low
Target Milestone: ---
Assignee: Ondrej Vasik
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2009-06-27 08:14 UTC by ^mp3axe^
Modified: 2009-11-19 13:25 UTC (History)
3 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2009-11-19 13:25:19 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)

Description ^mp3axe^ 2009-06-27 08:14:16 UTC
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 10:41:32 UTC
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 13:25:19 UTC
(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.