Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
RE: the mv trap
- X-seq: zsh-users 11764
- From: "Seth Kurtzberg" <seth@xxxxxxx>
- To: <zsh-users@xxxxxxxxxx>
- Subject: RE: the mv trap
- Date: Sun, 12 Aug 2007 16:58:38 -0400
- In-reply-to: <Xns998ADF1A94C0Dzzappergmailcom@xxxxxxxxxxx>
- Mailing-list: contact zsh-users-help@xxxxxxxxxx; run by ezmlm
- References: <Xns998ADF1A94C0Dzzappergmailcom@xxxxxxxxxxx>
- Thread-index: AcfdKIALnAEMXFLHSCyB9pFaYrD2EAABQP3w
Most recent versions of mv or cp warn you if there are more than two
arguments and the last argument is not a directory.
-----Original Message-----
From: news [mailto:news@xxxxxxxxxxxxx] On Behalf Of zzapper
Sent: Sunday, August 12, 2007 4:57 PM
To: zsh-users@xxxxxxxxxx
Subject: the mv trap
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
--
zzapper
http://www.rayninfo.co.uk/vimtips.html
Messages sorted by:
Reverse Date,
Date,
Thread,
Author