Using git master 727704c71507d6e3bfdb6600c52dee5abcaefb7d,
emptying trash on Debian gives error message
'rm: cannot remove directory /home/ckester/.vifm/Trash/..'
In src/trash.c, the function empty_trash_dir() has the following line:
snprintf(cmd, sizeof(cmd), "sh -c 'rm -rf %s/* %s/.[^.]*'", escaped, escaped);
On Debian, however, /bin/sh is linked to dash and that shell doesn't recognize the [^.] as intended by this line of code.
For example, the output from
$ dash -c 'ls .[^.]*'
will include the content of the parent directory, whereas
$ bash -c 'ls .[^.]*'
will list only the dotfiles in the current directory.
Thanks for the bug report. This is actually the third time (if I remember correctly) this command needs to be fixed:
I'm getting tired of this, so throw away this code and implemented removal manually. Also moved it to a separate thread, which is visible in
:jobsmenu.