andreafrancia / trash-cli

Command line interface to the freedesktop.org trashcan.
GNU General Public License v2.0
3.62k stars 177 forks source link

`trash-put` uses 100% of the CPU and does not delete a file #299

Closed Ganton closed 1 year ago

Ganton commented 1 year ago

Describe the bug trash-put uses 100% of the CPU and does not delete a file. This is easily reproducible:

touch "11062248.[-- -------, ----- -------- --- ---- ------ ------- «---- ---------» --- --] PopularComputing_Weekly_Issue_1982-09-16 [------ ----- -- -------- (--- -); ---------' ----- (--- -); Commodore 64 goes on sale; Disk drive for ZX81].pdf.xml"
trash-put "11062248.[-- -------, ----- -------- --- ---- ------ ------- «---- ---------» --- --] PopularComputing_Weekly_Issue_1982-09-16 [------ ----- -- -------- (--- -); ---------' ----- (--- -); Commodore 64 goes on sale; Disk drive for ZX81].pdf.xml"

trash-cli version Output of: trash-put --version (under Kubuntu 22.10) trash-put 0.17.1.14

Thanks for Trash-cli!

andreafrancia commented 1 year ago

The version you are using is from 14th jan. 2017. The problem should be already solved, you just need a recent version.

Do the followings:

sudo apt-get remove trash-cli
pipx install trash-cli # pip is also OK

Hope it helps.