Link to home
Start Free TrialLog in
Avatar of prashant_n_mhatre
prashant_n_mhatre

asked on

Problem with implementing Recycle bin

I'm trying to implement idea similar to recycle bin
in DYNIX/PTX.

When I say

>> mv log.txt ~/.trashcan  (works)


But when I tried:


function can        
{                  
  mv $1 ~/.trashcan
}                  

>> can log.txt

It says:

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?    
ASKER CERTIFIED SOLUTION
Avatar of yuzh
yuzh

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of prashant_n_mhatre
prashant_n_mhatre

ASKER

thanks a lot yuzh ....It works!!!