Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: the mv trap
- X-seq: zsh-users 11765
- From: "Mikael Magnusson" <mikachu@xxxxxxxxx>
- To: zzapper <david@xxxxxxxxxx>
- Subject: Re: the mv trap
- Date: Sun, 12 Aug 2007 23:21:54 +0200
- Cc: zsh-users@xxxxxxxxxx
- Dkim-signature: a=rsa-sha1; c=relaxed/relaxed; d=gmail.com; s=beta; h=domainkey-signature:received:received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=lixwJufEC7WWVFxCn0zpR7wLh/+5sSnSZPkK7rOo6j+G68Rvgh8bj0xF5rh9AZ8ZpAiy+R+Ny577r4EOuybsG4yxMs3OIbXi9ruKNdv86xlQUEl24vrA1u+dlZrOb3uY2o/U9eNxE/srcGzgdzGcMX+H6Bmd9OZgVIa3qfcg2BQ=
- Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=YSr845W1yUN3O8GVk1vE/15uGm+7Q/I1Y4xy39m9TB3o67t6UwTHY56ZLZXj0G25kRhhgaJcK8fFkdAs+f9FHWQiUihFj/766HmxqSM0uBAQYfVuBziPJNQTwF+B/4u4gZ4eOs747geo20R82DWZ6y6i/Wtkq7YmAtyeVj27NvY=
- In-reply-to: <Xns998ADF1A94C0Dzzappergmailcom@xxxxxxxxxxx>
- Mailing-list: contact zsh-users-help@xxxxxxxxxx; run by ezmlm
- References: <Xns998ADF1A94C0Dzzappergmailcom@xxxxxxxxxxx>
On 12/08/07, zzapper <david@xxxxxxxxxx> 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
Try always putting a / after "directory" and hopefully that will make
mv notice what you wanted, or just press tab to see if "directory"
completes.
--
Mikael Magnusson
Messages sorted by:
Reverse Date,
Date,
Thread,
Author