Red Hat Bugzilla – Bug 508435
'rm' of file with an apostrophe in it shows escape character
Last modified: 2009-11-19 08:25:19 EST
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):
Steps to Reproduce:
1. touch he\'ll
2. rm -i he\'ll
rm: remove regular empty file `he\'ll'?
rm: remove regular empty file `he'll'?
<NOTICE Backslash should not show>
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.
(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.