kaelzhang / shell-safe-rm

😎 Safe-rm: A drop-in and much safer replacement of bash rm with nearly full functionalities and options of the rm command! Safe-rm will act exactly the same as the original rm command.
Other
428 stars 33 forks source link

[BUG] `safe-rm` prompts message when file contains whitespaces #31

Open tapyu opened 8 months ago

tapyu commented 8 months ago
❯ safe-rm Germund\ Dahlquist,\ Ake\ Bjorck\ -\ Numerical\ Methods\ \(2003\).pdf
basename: extra operand ‘Ake’
Try 'basename --help' for more information.
basename: extra operand ‘Ake’
Try 'basename --help' for more information.

safe-rm shouldn't warn about anything. Success should be silence.