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

Re: the mv trap



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