Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: the mv trap
- X-seq: zsh-users 11771
- From: Atom Smasher <atom@xxxxxxxxxxx>
- To: zsh-users@xxxxxxxxxx
- Subject: Re: the mv trap
- Date: Mon, 13 Aug 2007 12:49:09 -0400 (EDT)
- In-reply-to: <20070813143638.GF6199@xxxxxxxxxxxxxxxxxxx>
- Mailing-list: contact zsh-users-help@xxxxxxxxxx; run by ezmlm
- Openpgp: id=0xB88D52E4D9F57808; algo=1 (RSA); size=4096; url=http://atom.smasher.org/pgp.txt
- References: <Xns998ADF1A94C0Dzzappergmailcom@xxxxxxxxxxx> <20070813023540.GC6199@xxxxxxxxxxxxxxxxxxx> <Xns998B58B931C45zzappergmailcom@xxxxxxxxxxx> <20070813123210.39119.qmail@xxxxxxxxxxx> <20070813143638.GF6199@xxxxxxxxxxxxxxxxxxx>
On Mon, 13 Aug 2007, Vincent Lefevre wrote:
alias mv="mv -i"
This won't change anything if the target doesn't exist yet.
==============
it's not intended to. what it's good at is not wiping out a file that
already exists. it will let you screw up, to a certain degree, but it will
mostly guide you towards making screw ups that can be easily recovered
from.
the real danger with an alias like this (rm="rm -i" is another one), once
you start getting used to having a safety net, you forget that it's not
there sometimes... like using xargs or a different login.
--
...atom
________________________
http://atom.smasher.org/
762A 3B98 A3C3 96C9 C6B7 582A B88D 52E4 D9F5 7808
-------------------------------------------------
"More than any time in history, mankind now faces a
crossroads. One path leads to despair and utter
hopelessness, the other to total extinction. Let
us pray that we have the wisdom to choose correctly.
-- Woody Allen, "Side Effects"
Messages sorted by:
Reverse Date,
Date,
Thread,
Author