zsh-workers
 help / color / mirror / code / Atom feed
From: zzapper <david@tvis.co.uk>
To: zsh-workers@sunsite.dk
Cc: zsh-users@sunsite.dk
Subject: Re: the mv trap
Date: Mon, 13 Aug 2007 07:44:39 +0000 (UTC)	[thread overview]
Message-ID: <Xns998B58B931C45zzappergmailcom@80.91.229.5> (raw)
In-Reply-To: <20070813023540.GC6199@prunille.vinc17.org>

Vincent Lefevre <vincent@vinc17.org> wrote in
news:20070813023540.GC6199@prunille.vinc17.org: 

> 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


       reply	other threads:[~2007-08-13  7:45 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <Xns998ADF1A94C0Dzzappergmailcom@80.91.229.5>
     [not found] ` <20070813023540.GC6199@prunille.vinc17.org>
2007-08-13  7:44   ` zzapper [this message]
2007-08-13 14:34     ` Vincent Lefevre
2007-08-13 16:50       ` Stephane Chazelas

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=Xns998B58B931C45zzappergmailcom@80.91.229.5 \
    --to=david@tvis.co.uk \
    --cc=zsh-users@sunsite.dk \
    --cc=zsh-workers@sunsite.dk \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.vuxu.org/mirror/zsh/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).