Subject: bug#64326: Some more info about rm bug

From: Arsen Arsenović <[email-masked]>
Date: Wed, 28 Jun 2023 17:41:13 +0200

Hi,

LitHack <[email-masked]> writes:

> Basically what it doing is that it doesn't recognise (-) this as a file
> name part even when using (\-). This bug will work on most of utilities
> like cat, cp etc

This is simply how argument parsing and shell syntax work.  'rm \-abc'
is equivalent to just 'rm -abc', which is parsed as 'rm -a -b -c'.  To
delete a file with a dash at the start of its name, use 'rm ./-file' and
similar.

Hope that helps, have a lovely day.
-- 
Arsen Arsenović