Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: the mv trap
- X-seq: zsh-users 11766
- From: Vincent Lefevre <vincent@xxxxxxxxxx>
- To: zsh-users@xxxxxxxxxx
- Subject: Re: the mv trap
- Date: Mon, 13 Aug 2007 04:35:40 +0200
- In-reply-to: <Xns998ADF1A94C0Dzzappergmailcom@xxxxxxxxxxx>
- Mail-followup-to: zsh-users@xxxxxxxxxx
- Mailing-list: contact zsh-users-help@xxxxxxxxxx; run by ezmlm
- References: <Xns998ADF1A94C0Dzzappergmailcom@xxxxxxxxxxx>
On 2007-08-12 20:57:13 +0000, zzapper wrote:
> Hi
> One of unix's little traps is when you intended to move some files to a
> directory but you mis-typed the destination directory and instead copied all
> your files to a file created with the mistyped folder name as name. In fact
> this file becomes a kind of a black-hole for all but the last listed files
>
> This is made worse if you don't notice your error.
>
> Is there any Zsh solution/warning to this ?
>
> > mv x1 x2 x3 x4 x5 directory
Your mv is buggy. It must report the error and must not do any change
on your files.
--
Vincent Lefèvre <vincent@xxxxxxxxxx> - Web: <http://www.vinc17.org/>
100% accessible validated (X)HTML - Blog: <http://www.vinc17.org/blog/>
Work: CR INRIA - computer arithmetic / Arenaire project (LIP, ENS-Lyon)
Messages sorted by:
Reverse Date,
Date,
Thread,
Author