Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

Re: add an mv protection ?



On 2006-05-03 11:40, Marc Chantreux uttered these thoughts:
> imagine this case :
> 
> % echo *
> a.pl b.pl
> % mkdir old
> % mv *pl
> 
> Here, i forget the target ( old ). The result is :
> 
> mv a.pl b.pl
> 
> i've lost the b.pl content!
> 
> is there a way to hook this case and ask a confirmation ?

from "man mv":
  -i     Prompt for confirmation when destination exists.  (In case  both
         -f and -i are given, the last one given takes effect.)

Regards,
 Patrick Börjesson

-- 
()  The ASCII Ribbon Campaign - against HTML Email
/\  and proprietary formats.

Attachment: pgp6pu9X84IGV.pgp
Description: PGP signature



Messages sorted by: Reverse Date, Date, Thread, Author