[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: Branko Čibej <brane_at_xbc.nu>
Date: 2003-04-30 10:07:38 CEST

Michael Wood wrote:

>On Wed, Apr 30, 2003 at 01:07:13AM +0200, Branko ??ibej wrote:
>
>
>>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
>$
>
>

Depends on the system. :-)

With Solaris /usr/bin/rm, -i always overrides -f; while /usr/xpg4/rm
behaves as you say. I believe /usr/bin/rm is more POSIXly correct.

-- 
Brane Čibej   <brane_at_xbc.nu>   http://www.xbc.nu/brane/
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Wed Apr 30 10:11:44 2003

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