[Gllug] trashman - a trash management utility for Linux filesystem
Tethys
sta296 at astradyne.co.uk
Mon Jan 30 13:21:16 UTC 2006
Richard Jones writes:
>del () { mv -i ${*} ~/.Trash; }
You want to quote the arguments, and also use @ instead of *, so it
handles filenames containing whitespace.
del () { mv -i "$@" ~/.Trash; }
Also note that with a default SELinux ruleset, the mv will fail if
the file you're deleting is on an NFS mount. No, I don't think it's
a particularly sane default, but that's how it is. You can fix it
with a rule like:
allow nfs_t fs_t:filesystem associate;
Tet
--
Gllug mailing list - Gllug at gllug.org.uk
http://lists.gllug.org.uk/mailman/listinfo/gllug
More information about the GLLUG
mailing list