[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

Re: svn revert recursive by default?

From: Michael Wood <mwood_at_its.uct.ac.za>
Date: 2003-04-30 09:14:06 CEST

On Wed, Apr 30, 2003 at 01:07:13AM +0200, Branko ??ibej wrote:
> solo turn wrote:
>
[snip]
> >in unix you have cp -r, and rm -r ... and nobody has the idea of

Exactly! The default is non-recursive. You have to type "-r" if you
want to do something that could remove or overwrite a whole bunch of
stuff, without being able to undo it.

> >using rm -QaX, cause you have to pay attention when using rm ...
> >making a command tricky or surprising to use, because it can cause
> >data loss, is not a real solution.
> >
> Nonsense. If the first thing in youre .rc file on Unix is not
>
> alias rm='rm -i'
>
> then I suggest you try typing
>
> rm -fr * .o
>
> in your source tree someday.

Actually, "-f" overrides "-i" if it comes later in the command line, so
having "alias rm='rm -i'" in your shell's rc file is not going to save
you from "rm -fr blah".

$ touch blah
$ rm -i -f blah
$ touch blah
$ rm -f -i blah
rm: remove `blah'? y
$

-- 
Michael Wood <mwood@its.uct.ac.za>
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Wed Apr 30 09:15:07 2003

This is an archived mail posted to the Subversion Dev mailing list.

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.