dylanaraps / fff

📁 A simple file manager written in bash.
MIT License
4.09k stars 173 forks source link

trash-action is failing #188

Open cmachmeier75 opened 2 years ago

cmachmeier75 commented 2 years ago

When pressing "p" after having marked deletable files with "d" before, I'll find the following error message in my terminal (after exiting fff with "q"):

[cm@qube] ~ >: fff
fff: Running trash
mv: missing destination file operand after '/home/cm/theme.sh'
Try 'mv --help' for more information.
[cm@qube] ~ >:

I checked the source code lines 914ff:

printf '\e[1mfff\e[m: %s\n' "Running ${file_program[0]}"
"${file_program[@]}" "${marked_files[@]}" .

Does the "." (instead of $FFF_TRASH) make sense in case of the "trash"-action?