Subject: bug#10819: [BUG][RM]

From: Jim Meyering <[email-masked]>
Date: Thu, 16 Feb 2012 09:38:24 +0100

Davide Brini wrote:
...
> At least in bash, but I suppose in other shells too,
>
> rm -rf #*
>
> treats the "#*" part as a comment, and (if you remove the "-f") complains
> about missing operand to rm.

That is the default, but for an interactive shell,
that behavior can be changed:

    $ echo a b # c
    a b
    $ shopt -u interactive_comments
    $ echo a b # c
    a b # c