Red Hat Bugzilla – Bug 234118
Different characters are used in rm <file> command in interactive mode.
Last modified: 2007-12-06 08:50:44 EST
Description of problem:
Different characters are used in rm <file> command.
Version-Release number of selected component (if applicable):
Red Hat Enterprise Linux AS release 4 (Nahant Update 4)
Linux hostname 2.6.9-42.ELsmp #1 SMP Wed Jul 12 23:27:17 EDT 2006 i686 i686 i386
Steps to Reproduce:
1. create a tempfile
2. run the command rm <filename>
3. Type y to delete the file
rm: remove regular empty file `tempFile'? y
rm: remove regular empty file `tempFile`? y
rm: remove regular empty file 'tempFile'? y
In the interactive mode the file name in encoded in two different characters "`"
and "'", so any one character should be used as `filename` or 'filename'.
This is related to the rm command, which in turn is part of package coreutils.
Reassigning bug to proper component.
Read ya, Phil
Sorry for late response. That is not a bug, that is expected behavior. This is
one of the correct quoting styles generally used by coreutils (to check all
correct coreutils quoting styles you could read
Anyway - changing behavior - like default quoting style for some command - is
dangerous thing in distribution like RHEL, because that style could be expected
in some scripts/parsers - and change like this will break them. Closing NOTABUG.