From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 16977 invoked from network); 3 May 2006 10:06:29 -0000 X-Spam-Checker-Version: SpamAssassin 3.1.1 (2006-03-10) on f.primenet.com.au X-Spam-Level: X-Spam-Status: No, score=-2.5 required=5.0 tests=BAYES_00,FORGED_RCVD_HELO autolearn=ham version=3.1.1 Received: from news.dotsrc.org (HELO a.mx.sunsite.dk) (130.225.247.88) by ns1.primenet.com.au with SMTP; 3 May 2006 10:06:29 -0000 Received: (qmail 24387 invoked from network); 3 May 2006 10:06:22 -0000 Received: from sunsite.dk (130.225.247.90) by a.mx.sunsite.dk with SMTP; 3 May 2006 10:06:22 -0000 Received: (qmail 27460 invoked by alias); 3 May 2006 10:06:14 -0000 Mailing-List: contact zsh-users-help@sunsite.dk; run by ezmlm Precedence: bulk X-No-Archive: yes X-Seq: 10206 Received: (qmail 27450 invoked from network); 3 May 2006 10:06:13 -0000 Received: from news.dotsrc.org (HELO a.mx.sunsite.dk) (130.225.247.88) by sunsite.dk with SMTP; 3 May 2006 10:06:13 -0000 Received: (qmail 23308 invoked from network); 3 May 2006 10:06:13 -0000 Received: from h90n3c1o1031.bredband.skanova.com (HELO nexon.borjesson.homedns.org) (213.65.34.90) by a.mx.sunsite.dk with SMTP; 3 May 2006 10:06:12 -0000 Received: by nexon.borjesson.homedns.org (Postfix, from userid 1000) id 451D567CFE; Wed, 3 May 2006 12:06:12 +0200 (CEST) Date: Wed, 3 May 2006 12:06:12 +0200 From: Patrick =?utf-8?Q?B=C3=B6rjesson?= To: zsh-users@sunsite.dk Subject: Re: add an mv protection ? Message-ID: <20060503100611.GA27242@nexon> Mail-Followup-To: zsh-users@sunsite.dk References: <44587A71.5080500@ulpmm.u-strasbg.fr> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="tKW2IUtsqtDRztdT" Content-Disposition: inline In-Reply-To: <44587A71.5080500@ulpmm.u-strasbg.fr> User-Agent: Mutt/1.5.11 --tKW2IUtsqtDRztdT Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On 2006-05-03 11:40, Marc Chantreux uttered these thoughts: > imagine this case : >=20 > % echo * > a.pl b.pl > % mkdir old > % mv *pl >=20 > Here, i forget the target ( old ). The result is : >=20 > mv a.pl b.pl >=20 > i've lost the b.pl content! >=20 > is there a way to hook this case and ask a confirmation ? =66rom "man mv": -i Prompt for confirmation when destination exists. (In case both -f and -i are given, the last one given takes effect.) Regards, Patrick B=C3=B6rjesson --=20 () The ASCII Ribbon Campaign - against HTML Email /\ and proprietary formats. --tKW2IUtsqtDRztdT Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.3 (GNU/Linux) iD8DBQFEWICTzbh2ByF5Kl0RAuuHAJwKm8GA2X1eFE3yqYlg8xqXqcllSACgo1q7 rUo1Cx6zYt3WTNyDQ7y7rj8= =PBxg -----END PGP SIGNATURE----- --tKW2IUtsqtDRztdT--