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

Re: the mv trap



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