Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

[Bug] incorrect warning when I type rm /*



Hello,

these days I wrote a command wrong. Instead of

"$ rm ./*" <- deleting  in the current directory

I wrote:

"$ rm /*" <- deleting in the root path "/"

zsh warn me with:

"zsh: sure you want to delete all 4 files in /home/[user]/Downloads [yn]?"

After I typed "y", it tried to delete the files in "/".

So the correct warning should be:

"zsh: sure you want to delete all X files in / [yn]?"


I use debian 10.4 with no "rm"-specifiy plugin.


Whatch out If you try it! :D


Best Regards

Jonas



Messages sorted by: Reverse Date, Date, Thread, Author