Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: the mv trap
- X-seq: zsh-users 11767
- From: zzapper <david@xxxxxxxxxx>
- To: zsh-users@xxxxxxxxxx
- Subject: Re: the mv trap
- Date: Mon, 13 Aug 2007 07:44:39 +0000 (UTC)
- Cc: zsh-workers@xxxxxxxxxx
- Mailing-list: contact zsh-users-help@xxxxxxxxxx; run by ezmlm
- Organization: SuccessTheory
- References: <Xns998ADF1A94C0Dzzappergmailcom@xxxxxxxxxxx> <20070813023540.GC6199@xxxxxxxxxxxxxxxxxxx>
- Sender: news <news@xxxxxxxxxxxxx>
Vincent Lefevre <vincent@xxxxxxxxxx> wrote in
news:20070813023540.GC6199@xxxxxxxxxxxxxxxxxxx:
> On 2007-08-12 20:57:13 +0000, zzapper wrote:
>> Hi
>>
>> > 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.
>
Hi,
red face; in fact my mv does report "not a directory".
My problem is reduced to unintentionally moving a single file to another
single file rather than the intended directory.
MM solves this by suggesting a trailing slash
$ mv x3 bucket/
mv: accessing `bucket/': Not a directory
--
zzapper
http://www.rayninfo.co.uk/vimtips.html
Messages sorted by:
Reverse Date,
Date,
Thread,
Author