Problem with implementing Recycle bin
Posted on 2001-07-16
I'm trying to implement idea similar to recycle bin
When I say
>> mv log.txt ~/.trashcan (works)
But when I tried:
mv $1 ~/.trashcan
>> can log.txt
mv: Target must be directory
Usage: mv [-e ignore|warn|force] [-fi] f1 f2
mv [-e ignore|warn|force] [-fi] f1 ... fn d1
mv [-e ignore|warn|force] [-fi] d1 d2
.trashcan is already a directory.
What is the problem with it?